Skip to main content



      Home
Home » Newcomers » Newcomers » how eclipse frees memory on exit?
how eclipse frees memory on exit? [message #247185] Tue, 29 January 2008 23:13 Go to next message
Eclipse UserFriend
Originally posted by: go.away.com

hi-

i am over at javaranch saloon in the intermediate group with a question.
basically the short version is i start up my app with
java -Xms10m -Xmx20m -jar jarName
options and my app loads with too much memory.

but if start eclipse and then close eclipse it reduces the amount
of memory in the windows task manager my application is consuming
(drastically).

if i knew how eclipse releases all that memory on exit maybe i could
put it in a dos batch file with a line of code. but it may be very
complicated
and wishful thinking.

i will be checking both posts tonight for the next couple of hours and will
write back if i get an answer. usually i try not to post in 2 groups but
this is
kind of maybe related to eclipse too.

thanks,
jim
Re: how eclipse frees memory on exit? [message #247189 is a reply to message #247185] Tue, 29 January 2008 23:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: go.away.com

thinking on this further i decided that in my fatjar
project that the jars are eclipse run-time jars.

so i am wondering as i can pass something on
to eclipse at startup (an argument to the
eclipse.exe) how i can do a similar process
when i have runtime eclipse jars inside the fatjar
plug-in??

i'm out of ideas :-(

thanks for any help,
jim
Re: how eclipse frees memory on exit? [message #247192 is a reply to message #247189] Wed, 30 January 2008 02:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: go.away.com

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
Re: how eclipse frees memory on exit? [message #247211 is a reply to message #247185] Wed, 30 January 2008 06:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Jim,

I'm confused by this question. The OS will reclaim all memory used by a
process after it exists. You application will also consume memory to
load the jars so you'll likely use a lot more memory than just that heap
you've specified.


3rdshiftcoder wrote:
> hi-
>
> i am over at javaranch saloon in the intermediate group with a question.
> basically the short version is i start up my app with
> java -Xms10m -Xmx20m -jar jarName
> options and my app loads with too much memory.
>
> but if start eclipse and then close eclipse it reduces the amount
> of memory in the windows task manager my application is consuming
> (drastically).
>
> if i knew how eclipse releases all that memory on exit maybe i could
> put it in a dos batch file with a line of code. but it may be very
> complicated
> and wishful thinking.
>
> i will be checking both posts tonight for the next couple of hours and will
> write back if i get an answer. usually i try not to post in 2 groups but
> this is
> kind of maybe related to eclipse too.
>
> thanks,
> jim
>
>
>
>
Re: how eclipse frees memory on exit? [message #247226 is a reply to message #247185] Wed, 30 January 2008 07:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: al_PUBLIC.gmx.de

On Tue, 29 Jan 2008 23:13:15 -0500, "3rdshiftcoder" <go@away.com>
wrote:

>hi-
>
>i am over at javaranch saloon in the intermediate group with a question.
>basically the short version is i start up my app with
>java -Xms10m -Xmx20m -jar jarName
>options and my app loads with too much memory.
>
>but if start eclipse and then close eclipse it reduces the amount
>of memory in the windows task manager my application is consuming
>(drastically).
>

You should check which kind of memory display is used. This sounds
like you start a second application which needs a lot of memory and
therefore the operating system pages out some memory allocated to your
first application. If you look at the "real memory" column in the
Windows task manager, this may look like there was some memory freed,
but in reality it was paged out to disk.


Achim
Re: how eclipse frees memory on exit? [message #247231 is a reply to message #247211] Wed, 30 January 2008 07:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: go.away.com

hi Ed,
i stopped specifying it.
you are right. i do need more memory.

i think achim explained some of my confusion. i was looking
at the wrong memory column and got confused
by the display in the task manager. i need to look
at "real memory".

it is ok to use that much memory i guess.
i will just tell people what memory is required
and they can decide.

thanks very much,
jim

"Ed Merks" <merks@ca.ibm.com> wrote in message
news:fnpnk6$prv$3@build.eclipse.org...
> Jim,
>
> I'm confused by this question. The OS will reclaim all memory used by a
> process after it exists. You application will also consume memory to
> load the jars so you'll likely use a lot more memory than just that heap
> you've specified.
>
>
> 3rdshiftcoder wrote:
>> hi-
>>
>> i am over at javaranch saloon in the intermediate group with a question.
>> basically the short version is i start up my app with
>> java -Xms10m -Xmx20m -jar jarName
>> options and my app loads with too much memory.
>>
>> but if start eclipse and then close eclipse it reduces the amount
>> of memory in the windows task manager my application is consuming
>> (drastically).
>>
>> if i knew how eclipse releases all that memory on exit maybe i could
>> put it in a dos batch file with a line of code. but it may be very
>> complicated
>> and wishful thinking.
>>
>> i will be checking both posts tonight for the next couple of hours and
>> will
>> write back if i get an answer. usually i try not to post in 2 groups but
>> this is
>> kind of maybe related to eclipse too.
>>
>> thanks,
>> jim
>>
>>
>>
>>
Re: how eclipse frees memory on exit? [message #247236 is a reply to message #247226] Wed, 30 January 2008 07:40 Go to previous message
Eclipse UserFriend
Originally posted by: go.away.com

thanks achim.
nice answer.

later,
jim
"Achim L
Previous Topic:Help on help
Next Topic:Vogella's Tutorial on RCP 3.3. Key Bindings?
Goto Forum:
  


Current Time: Sun Jun 08 10:49:08 EDT 2025

Powered by FUDForum. Page generated in 0.33594 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top