This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

How to know what is consumming most CPU  RSS feed

 
Ranch Hand
Posts: 89
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

I am facing a problem raised with legacy code that I don't know what to do.

The issue is regarding  an app developed in java-swing. After several monts working on the app I have just spot it is consuming high amounts of CPU time when opening a PopupMenu based on JPopupMenu.
This Class belongs to a jar file wrapping the calls to JPopMenu. When opening that popup menu you see runing a top command that X process reaches 100% and java around 70%. The app stills looks fluent, but I was told to reduce the CPU consume. By contrast, running jconsole or jvisualvm the CPU is no more than 10%. Then... I don't understand what happens: why those high differences between top and jconsole; don't understand how to relate X process and java. Could be the rendering/ the mouse listeners? Why this Component take over the CPU and the rest of windows, the behaviour is correct?

By the way, the app is working over RHEL 7 and motif windows manager as desktop. One more thing: when trying to debug the app, eclipse stops at breakpoint and everthing freezes.

May you please give me some light to solve the problem?

Thanks in advance.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!