instantaneous application instances on Solaris

Hi,

I have a java application running on a Solaris 9 machine

with Java 1.5.0_07.

I can see the instance of the application in the process list by ps command however once in a while it displays both the original and another instance but a child one this time with the same jvm arguments I assigned for the original one.

When I run immediately ps command again this child instance vanishes.

What can be the reason for this kind of behavior? Is there possibility that thread creation are displayed as actual processes.

Thanks in advanced

[581 byte] By [ifmisa] at [2007-11-26 14:26:23]
# 1

> Hi,

>

> I have a java application running on a Solaris 9

> machine

> with Java 1.5.0_07.

>

> I can see the instance of the application in the

> process list by ps command however once in a while it

> displays both the original and another instance but a

> child one this time with the same jvm arguments I

> assigned for the original one.

> When I run immediately ps command again this child

> instance vanishes.

Can you post "ps" command and results?

You can try to send "kill -3" to the process periodically and look for a non-expected-thread on thread dumps.

>

> What can be the reason for this kind of behavior? Is

> there possibility that thread creation are displayed

> as actual processes.

Depending on your system configuration you will see lightweight processes for each thread instead of kernel processes.

>

> Thanks in advanced

david327a at 2007-7-8 2:19:35 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Might you be using something like Runtime.exec(String) to create real processes? Those might come and go quickly, but during the fork() but before their exec() they might show up in a ps(1) as you describe.
PeterKesslera at 2007-7-8 2:19:35 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
Hi guys,Thanks for the answers.We've realized that some of the threads in the application hit enormous and unusual amount of CPU usage. As far as I抦 concerned it has to be fixed. By then I guess process list problem will vanish too.
ifmisa at 2007-7-8 2:19:35 > top of Java-index,Java HotSpot Virtual Machine,Specifications...