Solved

Tomcat Problem

Posted on 2014-09-25
6
337 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
  • 4
  • 2
6 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 500 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

785 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