Solved

Tomcat Problem

Posted on 2014-09-25
6
336 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mapAB Challlenge 35 128
windows explorer path to command prompt 5 33
fibonacci ten numbers 4 30
how to install java on RHEL image on EC2 4 13
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

863 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

20 Experts available now in Live!

Get 1:1 Help Now