Solved

Tomcat Problem

Posted on 2014-09-25
6
345 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 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
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…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

740 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