• 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

Performance issue

 
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
How to increse performance of a simple java program, i heard some parameters is there to increse performance, Please help me on this .

Regards,
vardhan
 
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can provide some parameters at compile time to increase how much memory that JVM can consume, which (might) increase the performance of your application.

More details about it can be found here:
http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Changing JVM command line options without knowing what you are doing is a recipe for disaster. I have a presentation that describes the heap and garbage collection and how to tune the heap sizes. Also, JBoss in Action has a chapter on performance, most of which applies to all Java apps, not just to JBossAS. I go into more detail on heap tuning in that chapter.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
More fundamentally, performance is unlikely to be improved greatly by tuning a few parameters. The architecture and design of the system, as well as the algorithms used, have a much bigger impact.
 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Peter Johnson:
Changing JVM command line options without knowing what you are doing is a recipe for disaster. I have a presentation that describes the heap and garbage collection and how to tune the heap sizes. Also, JBoss in Action has a chapter on performance, most of which applies to all Java apps, not just to JBossAS. I go into more detail on heap tuning in that chapter.



Very nice presentation Peter!!

Cheers,
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wow, Peter that presentation is awesome! I have read on garbage collector from Sun's link (cant seem to get it now), but this presentation makes it better, more illustrative and easy to follow.

Good deal! appreciate you sharing it!

Regards
Vyas, Anirudh
 
reply
    Bookmark Topic Watch Topic
  • New Topic