The Artima Developer Community
Sponsored Link

Java Answers Forum
Terminating a java program.

2 replies on 1 page. Most recent reply: Sep 4, 2003 4:36 PM by Senthoorkumaran Punniamoorthy

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Arun Agarwal

Posts: 5
Nickname: arunrecw
Registered: May, 2003

Terminating a java program. Posted: Sep 4, 2003 6:53 AM
Reply to this message Reply
Advertisement
Hi All.

I need your help. Context is :

We are working in a real-time system.
Our Java code is as big as more than 1000 class files, which includes tonnes of generated code also.

Somewhere when we start our program, it goes in infinite loop.

my question is can we kill the java program on solaris
platform and get the stack trace of the program.

As soon as I press ^c it gets out. I tried using kill command also, but all in vain.

Summary is :

killing a java program during execution.
platform is solaris .
getting the stack trace ( when killing where were we in the program.)

if more information is required, please tell me asap.

Thanks in Advance.
Arun.


Arun Agarwal

Posts: 5
Nickname: arunrecw
Registered: May, 2003

Re: Terminating a java program. Posted: Sep 4, 2003 8:13 AM
Reply to this message Reply
Hi.

Thanks all.
I found the solutiong after a little googling.
it is kill -3 pid which throws stack trace.

in solaris, to see, what all kind of kill signals a process can have
is psig <process-id> will let you know. and just for
information there are 42 different kind of signals ..:O).

Thanks and Regards,
Arun.

Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: Terminating a java program. Posted: Sep 4, 2003 4:36 PM
Reply to this message Reply
It is nice of you to share that information on this forum.

Flat View: This topic has 2 replies on 1 page
Topic: Design patterns web links Previous Topic   Next Topic Topic: please help me with my applet

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use