?
Solved

Tomcat Problem

Posted on 2014-09-25
6
Medium Priority
?
350 Views
Last Modified: 2014-09-28
Hi

I am running Tomcat 7.0.35 on CentOS 5.6 64bit. java version "1.6.0_29". I am primarily running a Jasper report integration application to integrate Jasper reports with Oracle Apex.

The issue is almost daily the application stops running and tomcat throws error Apache Tomcat/7.0.35 HTTP - 404 Error.

I know very little about Java/tomcat and will be really thankful if someone can help. I have attached catalina.out of the relevant time.

Regards,

Zulqarnain
catalina-out.txt
0
Comment
Question by:sysautomation
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 2000 total points
ID: 40345465
I suggest you rise number of file handles for tomcat process
e.g.

in /etc/security/limits.conf
tomcat - nofile 8192

PSI PROBE can monitor tomcat better than plain logs
0
 

Author Comment

by:sysautomation
ID: 40345472
Thank you so much. I will surely do that. Is there any formula to determine the correct value of no file for my system?
0
 
LVL 62

Expert Comment

by:gheist
ID: 40345606
There is no "correct" value
System can handle few millions of open files, but defaults to 1024 per process...
Since files are present but you get 404 error only possibility is that you cannot open them because of no resouces.
0
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 

Author Comment

by:sysautomation
ID: 40345674
Thanks. I have increased the value and rebooted the machine. Will monitor it and let you know.
0
 
LVL 62

Expert Comment

by:gheist
ID: 40345709
Now you have more space for resource leaks too. Try to monitor number of connections on backend databases. If they leak etc.
0
 
LVL 62

Expert Comment

by:gheist
ID: 40345713
Current Java6 on CentOS is
java version "1.6.0_32"
OpenJDK Runtime Environment (IcedTea6 1.13.4) (rhel-6.1.13.4.el5_10-x86_64)

I suggest that you also upgrade (yum upgrade) whole system to get current security patches.
It may fix some of resource leaks (the bad one is single packet that consumes 1K of RAM if RHEL5 receives it etc)

Current Oracle/Sun Java6 is 1.6.0 U81 and hidden behind paywall from general public.
Check if you can get your tomcat up to Java7 to stay with more mainstream release (and get a performance fix or two)
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This video teaches viewers about errors in exception handling.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month12 days, 17 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question