axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "donald yang" <donal...@googlemail.com>
Subject Re: I have fixed the some bugs in axis2 and attaching updates
Date Fri, 30 Mar 2007 09:32:58 GMT
Hi, Chris
Yes, I agree that running System.gc() does not guarantee the garbage
collector is running. That is why I call System.gc() twice rather than once.
So far there is no any problem on Tomcat.

best regards
donald


On 3/30/07, Christian Poecher <chris@poecher.de> wrote:
>
> donald yang schrieb:
>
> > 1. Hot update web services that load native library.
> >
> > When you develop web services as a wrapper of native library(e.g., .dll
> > or .so library), you can NOT hot update the web service as JVM will tell
> > you that the dll has been loaded.
> >
> > The simple solution is to force JVM run garbage collector. So I updated
> > *DeploymentEngine.java *and what I have changed is to add System.gc()
> > twice at end of the method *unDeploy()*(Line number 681 and 682).
>
> Hmm, you cannot *force* the JVM to run the garbage collector. Even if
> your solution might run for you I suspect that it does not guarantee
> this behavior.
>
> See for example http://www.jguru.com/faq/view.jsp?EID=13932
>
> Cheers,
> Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Mime
View raw message