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

Performance issue  RSS feed

 
Reshma Reddy
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • 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
 
Piet Verdriet
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
  • 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
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • 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.
 
Manuel Leiria
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • 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,
 
Anirudh Vyas
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!