By gencaysahinn
I deployed Java web applibation on Tomcat with Mongodb in Ubuntu 14.04. But Tomcat CPU usage increases suddenly to %100 after 5-6 hours. I couldnt find why. Help please.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
We’d need more information about your setup/configuration and application before we could really help to diagnose the issue.
Beyond setup/configuration, Droplet size should also be taken in to account. If you’re running this on a 512MB Droplet, you may need to upgrade. The same if you’re running on a 1GB Droplet. It all really depends on how much resources are being used by each service.
You can get a general idea of how much CPU & RAM is being used by looking at the output of the top command:
top
Once top is running, hit SHIFT+M, then c, and finally e. That’ll help you sort your processes by usage and also extend what is actually being ran. The last command, e, displays RAM/CPU in human readable format (MB/GB), which makes it a little easier to see how much is being consumed.
Tomcat use 100%cpu and Command was /usr/lib/jvm/default-java/bin/java-Djava.util.logging.config.file… Then i looked logs and i saw that **INFO: Error parsing HTTP request header
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.