• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat starts but doesn't reply

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27764
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Be reasonable. You can't destroy everything. Where would you sit? How would you read a tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic