I have been playing with jsh. I entered recognized as
well as unrecognized commands.
For each command I entered, a thread was created to
execute it. That is understandable. But, this thread
is never going away. For example, I enter
ts
and I see a lot of hanging threads. This will cause
memory leak.
Example:
java.lang.ThreadGroup[name=ThreadGroup for
JProcesses,maxpri=10]
java.lang.ThreadGroup[name=1: dir,maxpri=9]
java.lang.ThreadGroup[name=11:
echo,maxpri=9]
java.lang.ThreadGroup[name=12: echo (
aa),maxpri=9]
java.lang.ThreadGroup[name=14:
aaaa,maxpri=9]
java.lang.ThreadGroup[name=16:
ddd,maxpri=9]
java.lang.ThreadGroup[name=17:
shell.ThreadStatus,maxpri=9]
Thread[Main thread for
shell.ThreadStatus,5,17: shell.ThreadStat
us]
Thread[AWT-EventQueue-13,6,17:
shell.ThreadStatus]
Thread[SunToolkit.PostEventQueue-13,6,17:
shell.ThreadStatus]
Thanks,
Ben
PS: JSH is a good idea. Please continue to enhance it. I
will contribute fixes here when I find something.
Logged In: YES
user_id=7566
Thanks for your bug report.
Sometimes application's thread cannot be killed, due to
bugs in the JVM thread management (zombies).
But for applications like ts, it should not happen.
Please tell me which version are you running ?
Thanks for the comments. I can put you as dev. in the
project if you want to provide fixes