The other night i was trying to use nsproxy for long running processes,
like encoding with ability to work with them like ns_job queues,
define min. max, submit in the background, check who is running, kill if
have to.
Can nsproxy be extended to be able to kill any particular process
without issuing nsproxy get first, get hangs if no available process are
in the pool. It would be nice to be able to query how many are running
and be able to kill by pid or name, does not matter.
Zoran Vasiljevic wrote:
On 13.09.2006, at 04:55, Vlad Seryakov wrote:
Had ns_proxy running, typed in nscp ns_shutdown and nsd crahsed
Eh... this is true. In the attempt to cleanup as much as possible
I prematurely cleaned a pool having references to it.
Actually, pools still having references to them should not be
touched and should rather leak.
OTOH, at the shutdown, there should be no references as all
threads should have already been exited. I guess at this point
we have still some trouble...
The immediate and not clean solution is just to skip such pools
and let them leak. I'm emitting the log message in such case as
the reminder:
[13/Sep/2006:10:22:37][1132.2684415384][-main-] Warning: nsproxy:
pool "test" not destroyed, has 1 active slaves
I do not think it is possible to avoid this, after thinking about
this for a while. But still, lets leave this here as we might be
more clever in the future.
Please checkout and try again.
Cheers
Zoran
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel
--
Vlad Seryakov
571 262-8608 office
[EMAIL PROTECTED]
http://www.crystalballinc.com/vlad/