• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.exe memory question  RSS feed

 
jim mcnamara
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi-

i just noticed that if i start my little java application
in the windows task manager the process is 70,000k.
but if while i have my application open i launch eclipse
and then close eclipse the java.exe process memory goes way
down to about 5,000k.

what can i do for the user so that i start out around
5,000k and why does this happen?

thanks for any input,
jim
 
jim mcnamara
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi-

i am following up with what i thought would work and am wondering
why i didnt work??

cd c:\Program Files\JadeCheckBook
java -Xms6144k -Xmx50M -jar demorun_fat.jar

i am using fatjar eclipse plug-in.
i played with the -X values and gave them more memory and
didnt receive the out of memory heap errors after being more
generous but my application became really greedy upon loading.

i wonder if there is a way at the command line in my dos
batch file i can force my program to release the memory similar
to what eclipse does when it shuts down?

thanks for any assistance,
jim
 
jim mcnamara
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi-

i fooled around with this some more.
not sure why a few times i noticed the memory dropped on eclipse exit.
but after awhile anyways it seems that my application which uses
the fatjar plug-in with the eclipse run-time uses about the same
memory as if i launched regular eclipse without too many
views opened up in the eclipse IDE.

so i guess my final question/statement is i dont really think
there is a way to reduce the amount of memory for my
little application even though i am not launching the eclipse
ide i develop in to run the little application.

thanks anyways,
jim
 
jim mcnamara
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi-

i fooled around with this some more.
not sure why a few times i noticed the memory dropped on eclipse exit.
but after awhile anyways it seems that my application which uses
the fatjar plug-in with the eclipse run-time uses about the same
memory as if i launched regular eclipse without too many
views opened up in the eclipse IDE.

so i guess my final question/statement is i dont really think
there is a way to reduce the amount of memory for my
little application even though i am not launching the eclipse
ide i develop in to run the little application.

thanks anyways,
jim
 
jim mcnamara
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi-

i got another answer that helped explain things.
a programmer told me that i looked at the wrong
memory column in the task manager.
i needed to look at the "real memory" column.
it appeared my program temporarily was using
less memory when it was in fact maybe temporarily
using a different type of memory.

thanks,
jim
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!