Re: Clear Tomcat Classloader cache?



On Apr 30, 4:36 am, Cheng Wei Lee <cheng....@xxxxxxxxx> wrote:
On 4 abr, 04:44, tkonr...@xxxxxx wrote:



Hi.

As fas as I know, the classloader of the tomcat server caches all
classes, which has been requested once, in the ram. Further request do
not read the file from disk, they are using the information in the
ram.

We want to clear this cache or force the classloader, do read the
class-files (and any other ressource files) once again from disk,
without rebooting the server or restarting the webapp.

Is this possible?

Thanks for help.

Thomas Konrath

I think what you meant to do is to reload the context of your
application after your classes have been updated. To do so, go to
Tomcat Manager and restart your context. Beaware that the classes stay
in the Permanent Generation so they will eventually fill up the
Permanent generation Heap space, which means that you will eventually
have to restart Tomcat or you will run out of memory.

Cheng

Hi.

Thanks for your replies.

The background of my question was just do be able to replace class-
files or other ressource files while tomcat is sill running and all
user sessions keep alive. Restarting the webapp has two negative
aspects: 1) all user sessions would be lost and 2) as you mentioned,
tomcat will run out of memory.

So we have to think of another way to solve our problem.

Thanks for help

Thomas

.



Relevant Pages

  • Re: PC Keeps Restarting.
    ... Having just built my pc with some new bits, new motherboard and hard drive i'm having a problem. ... My PC keeps restarting at random intervals, while playing games and also when just general activity. ... I've tried swapping my RAM to see if one of the sticks was faulty but still does it. ... BIOS makes all the difference. ...
    (alt.comp.hardware.pc-homebuilt)
  • Re: PC Keeps Restarting.
    ... Having just built my pc with some new bits, new motherboard and hard drive i'm having a problem. ... My PC keeps restarting at random intervals, while playing games and also when just general activity. ... I've tried swapping my RAM to see if one of the sticks was faulty but still does it. ... it runs two test threads. ...
    (alt.comp.hardware.pc-homebuilt)
  • RE: Boot Problems, Keeps Restarting
    ... try booting to windows recovery console and running "diskpart", ive found that sometimes the win 98 startup disk will not work correctly. ... > restarting, but never opened to a window, and restarted. ... > the partition, but could not create a new partition. ...
    (microsoft.public.windowsxp.general)
  • Re: SASSER?
    ... | tried restarting and I got the error: stop:c000021 Image ... Then it would get to the windows screen ... Could be a user profile problem or a DLL ... disk corruption since that FON font error is a sign of such. ...
    (microsoft.public.security.virus)
  • Re: The "Restart" Apple menu option
    ... logging out, shutting down or restarting. ... I am neither saying OSX is perfect, ... am I saying the various flavors of Windows are trash, ... This happens when a disk is not connected but the OS "thinks" it so it's ...
    (comp.sys.mac.advocacy)