Re: Waking up sleeping Java applications
From: Ben Jessel (ben.jessel_at_morpheme.co.uk)
Date: 12/05/03
- Next message: kendzo: "Java Open Source Hub Newsletter - Vol 1, Issue 2"
- Previous message: Bent C Dalager: "Re: lines of code?"
- Maybe in reply to: Wes Harrison: "Re: Waking up sleeping Java applications"
- Next in thread: Chris Smith: "Re: Waking up sleeping Java applications"
- Reply: Chris Smith: "Re: Waking up sleeping Java applications"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 5 Dec 2003 06:17:19 -0800
I would hazard a guess that windows always pages it out of memory when
you minimize it. However, the reason that C++ ms programs etc dont
have this problem is that they don't have virtual machine code and
state to restore. I'm guessing that javaw, java.exe and all the .dll's
that it relies on are pretty big. Not only that, the virtual machine
has to be loaded, the code that you are running on it is then stored.
With java you are running a program that is itself running a program.
I guess with MFC and Microsoft programs, the runtime environment is
part of the Microsoft Windows environment.
Also, could it be that the classloader refreshes all the classes once
an app becomes re-activated?
I think roedy even suggests himself on his site an idea for a project
where Java dll's are held in memory to enable faster app startup.
What is the time that it takes to initially load up an application
in terms of the time taken to re-activate the app?
Just a couple of thoughts...
"Wes Harrison" <nospam@home.com> wrote in message news:<mC_xb.681$MT1.16041@nnrp1.ozemail.com.au>...
> Why is it that when a Java application (esp. Swing) running under Windows
> 2000 has been minimized for a while, it needs time to "wake up"? In my
> experience, some of these apps can take up to 30 seconds on my PIII 500
> machine until they have refreshed their screen and will accept input. The
> longer they sleep, the longer it takes to wake up in general and while it's
> waking up there is a lot of disk activity.
>
> What's going on during this time? I don't think it's garbage collection.
>
> This has happened on every machine I have used Java on so I guess it's a
> feature but I don't think Java will succeed on the desktop until it has been
> resolved.
>
> Wes
- Next message: kendzo: "Java Open Source Hub Newsletter - Vol 1, Issue 2"
- Previous message: Bent C Dalager: "Re: lines of code?"
- Maybe in reply to: Wes Harrison: "Re: Waking up sleeping Java applications"
- Next in thread: Chris Smith: "Re: Waking up sleeping Java applications"
- Reply: Chris Smith: "Re: Waking up sleeping Java applications"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|