|
From: Jaume O. <ob...@es...> - 2006-11-13 08:12:36
|
Hi people. I have a problem using the java wrapper. I used to run an small java chat application server, native compiled as a daemon. Since I've experienced some problems running that way, I decided to use java wrapper. All works fine, but I have a problem in the number of processes given by linux command "pstree". The application starts 2 new threads for each new client connection, so "pstree" command should show 2 more processes, but since I use the java wrapper, it shows 3 new processes, and when client disconnects, there is a process remaining running, so with the time, the number of java processes are increasing, which is a problem. I've revised the code and made sure that only 2 threads where launched, in fact, when I run the application without using the wrapper, "pstree" shows the correct number of processes, the problem comes when I run it as a daemon using the java wrapper. I use Java wrapper 3.2.3, Debian etch in a VPS virtual server. java version "1.4.2-03" Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-03) Java HotSpot(TM) Client VM (build Blackdown-1.4.2-03, mixed mode) Thanks a lot in advance, Jaume Obrador. |