• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Tomcat starts but doesn't reply  RSS feed

Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
I'm working with Apache Tomcat/8.0.14 on Ubuntu server 15.04.
I have a Spring application deployed as ROOT, when I start tomcat service I saw all logs and the startup and context initializer seems to work.
But... it doesn't reply to HTTP request for many (15-20) minutes, after this time, it starts to reply. I don't see errors in the catalina log.

I checked with netstat and the connection pool is opened, the HTTP connections are not refused but they reach the timeout time.

What should I check? The same application in a windows tomcat8 enviroment works without problem.
Posts: 20736
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First check your system load. If you're low on virtual memory and it's thrashing or CPU is all booked up, then naturally it will be slow.

Following that, look at how the application starts up. I once worked with an app that loaded half a database in RAM when it first came up.
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use
This command with print all Threads in application. Make request and if you see that tomcat is not returning make a couple Thread Dumps. Then search for your application package name eq(com.awsome.app) if you see the same method in a couple of Thread dumps it maybe your slow part.

I didn't like the taste of tongue and it didn't like the taste of me. I will now try this tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!