• Post Reply Bookmark Topic Watch Topic
  • New Topic

JVM size  RSS feed

 
Ian Browner
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm having problems with JVM size. If I run even a simple application with one while loop -
class Test{
public static void main(String[] args){
System.out.println("hello...");
while(true){
System.out.println("############################ running");
}
}
}
...the JVM size is 15MB.
Does this seem too large?
I'm running jdk1.4.2 on Solaris 8.
Thanks,
Ian.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too large for what? What problems do you encounter?
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IP: When the journey is the reward, taking a shortcut doesn't sound very reasonable.
What kinda journey we talking 'bout?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Eugene Kononov:
IP: When the journey is the reward, taking a shortcut doesn't sound very reasonable.
What kinda journey we talking 'bout?

Every kind of journey where the journey itself is the reward (for example unit testing). It's my sig and in no way connected to your question.
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Every kind of journey where the journey itself is the reward (for example unit testing). It's my sig and in no way connected to your question.
I know it's your sig. Just wanted to know what you meant. Thanks for the explanation.
 
Annekee Dufour
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After all this discussion of signatures, is anybody going to mention to the guy that

while(true){
System.out.println("something");
}
is an endless loop? Which is never helps performance?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!