Solved

Tomcat Problem

Posted on 2014-09-25
6
334 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 61

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 61

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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

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 61

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 61

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
pairstar challenge 2 42
groupSum6 challenge 6 35
Core Java. What output will be and why ? 6 58
Java JRE greater than 1.6 5 21
Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now