Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have a RESTful web service (Java, hosted in Tomcat on Ubuntu on Amazon EC2). From time to time it fails (not every week). When it fails, Java CPU consumption goes to 100% and it takes all available memory. It does not finish by itself. I have to restart the server.

There is nothing suspicious in Tomcat access logs. I guess one of our users could submit a very "heavy" request which brought the server down. Is it possible this request is not in Tomcat logs since it never finished?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Tomcat logs the end-time of the request in the access log so only completed requests are logged. We had a similar issue and a similar suspicion. Using WireShark we monitored all traffic and discovered the requests which caused our problem.

A better idea would be to put an Apache Server in front of tomcat and log there, alternatively a load balance could perform the same function.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.