Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

100% space occupation  RSS feed

 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

my application is occupaying 100% CPU usage/space even I give one request to the server may I know how can I prevent my web site from that problem?

This is a major one.
regards,
rahul
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way you've got an infinite loop going on somewhere in there? That might be why. Usage shouldn't be doing that on one request.

What's your hardware/server configuration?

-Cameron McKenzie
 
rajesh bala
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you try taking thread-dump when you experience 100% CPU problem. In windows, do ctrl-break and in linux use "kill -QUIT <PID>"

This will generate the thread-dump in the console. This will help in understanding the CPU running at 100% problem. Can you post the output here. I would recommend taking couple of threaddumps at 5 seconds interval.

~Rajesh.B
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!