Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6529621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:39:26+00:00 2026-05-25T09:39:26+00:00

I am running a Java-based, multi-user web application on Tomcat 6. For some reason,

  • 0

I am running a Java-based, multi-user web application on Tomcat 6.

For some reason, after 1 day the whole application gets really slow.

"top" says that CPU is at 120% (caused by the tomcat process) although there are not many users online, so I assume there is some kind of infinite loop (or a similar issue) going on.

On my local system, I cannot reproduce the problem.
I also cannot find out which part (which class/method) is causing the problem.

What’s the best way to debug this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:39:27+00:00Added an answer on May 25, 2026 at 9:39 am

    Use a profiler and see which methods are running the most (most calls or most of the time). jvisualvm is free and part of Java JDK.

    If a GUI is not an option (as stated in the comment) try with hprof (http://java.sun.com/developer/technicalArticles/Programming/HPROF.html) or any command line profiler (there are many of them).

    But you don’t need to run the profiler GUI on the same machine. You could run it on your machine and connect to the remote VM.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Java EE-based web application running on a Glassfish app server cluster.
We have a Web Java based application running on JBoss with allowed maximum heap
Let's say I have a running Java-based web application with 0 or more valid
I am working on a web-based application which is deployed in the Tomcat server.
I am running a query from my java based web app running in a
I have a Java GUI-based application that writes some diagnostic messages to System.out and
Is there an event that gets fired when somebody closes a desktop-based Java/JavaFx application
There is an actual running Java ServerPages (JSP) application within a *NIX box which
I'd like to generate sequence diagrams of a running java ee application using jtracert
I'm working with the ChemAxon JChem cheminformatics application to develop a web-based browsable and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.