Program hangs, can't get thread dump

Hello
I have a Java program which sometimes works OK untill the very end, but sometimes just hangs in a random moment and doesn't react to Ctrl+C or Ctrl+Break. Process doesn't use CPU, so I guess it isn't something like infinite loop (I actually cannot think of places in my program where this kind of loop may occur). I tried to get thread dump to see if there are any deadlocks, but Ctrl+Break doesn't work and jstack doesn't work also (I've read that there is -F option, but it isn't available on Windows). Also I tried to connect to a process with Java Visual VM - doesn't help too (just says 'Connecting...' forever).
What else can I do to find out what's going on in my programm and fix it?
I tried to run it with JDK 1.6.0_07 and 1.6.0_16. I'm using Windows Vista Enterprise SP1, 64-bit.
Thanks in advance, Yulia.
Edited by: Yulia_Dubinina on Oct 26, 2009 11:58 PM
Edited by: Yulia_Dubinina on Oct 27, 2009 12:13 AM

Yulia_Dubinina wrote:
Yesterday I tried to start my program, connect with Java Visual VM to it and see how threads visualisation will look like in a moment when program hangs. My programm died after about 50 min and all info which I was able to see was about this period of time (e.g. a timeline diagram stopped changing and the last time mark was 49:23), but Java Visual VM was still connected to a process. I tried to press Thread Dump button, it worked, but there was nothing 'criminal' on the dump it provided. So I guess maybe it's not actual thread dump, it's something that Java Visual VM was able to get before process hanged.
I don't have much experience in resolving this kind of problems, so any advices will be great appreciated.
Edited by: Yulia_Dubinina on Oct 27, 2009 2:14 PMTurn on verbose GC and see if you got lots and lots of full GC when the freeze happens. A full GC can take several minutes if you have a bad configuration (where e.g. memory has been paged out to disk)

Similar Messages

  • Hi help unlock the phone happened after we installed a new programa we can not get the activation password and ID, I know and still does not stop the phone bought in Israel and what documents should be sent to confirm that my phone Please read through the

    hi help unlock the phone happened after we installed a new programa we can not get the activation password and ID, I know and still does not stop the phone bought in Israel and what documents should be sent to confirm that my phone Please read through the help

    What I am saying is ..........
    The iPhone HAS to be active making calls on the UK carrier network for the carrier to identify as "theirs" and therefore eligible for the Carrier to unlock
    The way to achieve this is to use a PAYG sim making and receiving calls to establish a customer relationship  with the Carrier and then follow the Carrier's process to unlock
    With a PAYG it usually means adding a specified (by the carrier ) amount  usually £15 /£20 depending on the carrier
    This is how O2 function and according to Gemma  this is how Vodafone work

  • How can I get heap dump for 1.4.2_11 when OutOfMemory Occured

    Hi guys,
    How can I get heap dump for 1.4.2_11 when OutOfMemory Occured, since it has no options like: -XX:+HeapDumpOnOutOfMemoryError and -XX:+HeapDumpOnCtrlBreak
    We are running Webloic 8.1 SP3 applications using this Sun 1.4.2_11 JVM and it's throwing out OutOfMemory, but we can not find a heap dump. The application is running as a service in Windows Server 2003. How can I do some more analysis on this issue.
    Thanks.

    The HeapDumpOnOutOfMemoryError option was added to 1.4.2 in update 12. Further work to support all collectors was done in update 15.

  • Firefox crashes but the dump has been uploaded, how can I get the dump(Not the raw dump in bugzilla )?

    I meet a problem that firefox happens to crash, but i can not get the dump because it has been uploaded?
    Is there any way I can get the dump(Not the raw dump)?

    This problem is not a pop-up. First of all the problem did not start until Yahoo changed their set up for ads in Yahoo Games.
    Once it did start, the ads do not "pop-up", it is a vertical bar that is there all the time. You cannot get rid of it.
    By the same token, it is not a Yahoo Problem since the problem does not exist using another server.
    Yahoo says it has to do with some add-ons or plug-ins in Firefox that is causing the problem.
    As you can see by the screen picture, one third of the game screen has a vertical ad area. I want to get rid of it.

  • I thought that iMovie/iphoto/garageband were free but i received an email confirming that i bought these program. how can i get my money back?

    thought that iMovie/iphoto/garageband were free but i received an email confirming that i bought these program. how can i get my money back?

    The question is ... Did you buy them, accidentally or otherwise?   They are all part of iLife, the latest version of which is iLife 11.
    iMovie/Garage band can all be bought through the App store as separate programs; iPhoto is a free update.

  • C Programming: How can we get the filesystem name for a given file-path?

    C Programming: How can we get the filesystem name for a given file-path?
    Say I have a filepath=/mnt1/file1
    Using some OS API like stat, can I get the Filesystem /mnt ?
    Thanks in advance,
    -V

    Enter the command up to the point of entering the file path and add a space, then drag the file into the terminal window. It will fill out the path.
    If you need to go further into the contents of the Application package, you can continue with /Contents...
    Another way is to start typing and then hit Tab to auto-complete. It will stop where it can't determine the next letter.
    So, type /App tab and it will fill in /Applications. Type a / and start with the name of the app, then tab and it should complete. Continue till you have the correct path.
    Spaces will be replaced with \<space>, so, App Store would end up as /Applications/App\ Store.app

  • Getting thread dump of JWS application

    Hi,
    I know this was discussed a few times before, but I still have no solution for my problem.
    I have a JWS GUI application that deadlocks sometimes (Windows 98). So I want to get the thread dump to analyze the deadlock. In Java Web Start I changed the java command from javaw.exe to java.exe, so I get a dos box. When I press CTRL-BREAK inside the dos box, I get the thread dump but because the dos box just shows a few lines I only get the last lines of the dump. Under Windows 98 I cannot resize the dos box.
    Is there a way to redirect the output of the dos box to a file? Or is there another way to get the thread dump of a JWS application?
    Thanks in advance
    Markus

    Here is 50% of the solution. To generate a thread dump programatically, you need to call JVM_DumpAllStacks through JNI. You need to link in "jvm.lib".
    JNIEXPORT void JNICALL JVM_DumpAllStacks(JNIEnv *env, jclass unused);
    JNIEXPORT void JNICALL Java_Services_generateThreadDump(JNIEnv *env, jobject thisObject) {
         // Produce a thread dump to VM standard out
         JVM_DumpAllStacks( env, NULL );
    }Here is the java class that calls the JVM_DumpAllStacks method through JNI.
    public class Services {
          * Send a message to the VM, forcing it to create a thread dump. The resulting
          * thread dump will be sent to stdout. Note that this is the VM's stdout, not
          * necessarily System.out.
         public static native void generateThreadDump();
    }When you reach the point in your code that you want to generate a thread dump, close stdout and reopen it with the thread dump destination stream. Next, call the JNI method. This will send the thread dump to stdout.
         // Replace stdout with a file output stream
         System.out.close();
         System.setOut( new PrintStream( new FileOutputStream( "stdout.log" )));
         // Generate thread dump
         Services.generateThreadDump();Why is this only 50% of the solution ? Because this works beautifully for regular applications but it does NOT work for WebStart applications. Not sure what is happening here, but so far I have not managed to get any thread dump in a file from an application that has been fired up through WebStart. Note that I CAN get a thread dump in a file if I fire up the same code from the command line.

  • Getting Thread Dump programitically ?

    Hi,
    Is there any way by which we can get the thread dump programatically?
    We are using Solaris OS and when we tried to get the thread dump using
    'kill -QUIT <pid of process>' the process(WebLogic) got crashed.
    So, please let me know how can we get the thread dump programatically.
    regards,
    Raghu

    There is a new static method for Thread called getAllStackTraces(). It is new for 1.5. See http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Thread.html#getAllStackTraces()You can start with that.

  • Now RAID BIOS Hangs-Can't get into it!!

    Folks - On a new build, the BIOS (v1.6) on my Neo4-F worked fine. I was trying to get Windows to not lose missing nt___ files. I kept deleting arrays and trying new array configs, reloading windows (yes, loading the RAID drivers with F6), but Windows still wouldn't load due to missing dll's.  Now when I set the RAID SATA settings in the BIOS, save & exit, on the reload it hangs at the Nvidia RAID ROM BIOS screen "Detecting array..." and won't go any further. So I have to power down, reset the CMOS to get the BIOS back.  If I go in and reset the SATA RAID drives, it'll do the same thing, otherwise if I don't set the RAID, it'll go on to load Windows as normal.  What happened and how can I get into the RAID BIOS again???  Thanks 

    Try having just one connected and boot . (do a cmos clear also ) .
    You can also leave the drive powered , and just insert/remove the sata cable when system is running .
    Just don't plug/unplug the HDs power connector while system is powered on.
    Sometimes the raid hangs if the drive order has been reversed (the raid mirror is confused whats drive #1) .So you should also try switching the drives on the connected sata ports .
     

  • How to get thread dump in case of out of memory error.

    Hi Team,
    In case of out of memory, heap dump can be generated using option '- XX:+HeapDumpOnOutOfMemoryError'. Is is possible to generate thread dump too using any option? Can it be done using option -XX:OnOutOfMemoryError="<cmd args>?
    Thanks in advance.
    Regards,
    Atul.

    Jay SenSharma wrote:
    Hi Mukul,
    Complete Steps can be Devided into 3-parts
    A). Configuring a Mail-Session
    B). Configuring WLDF Module
    C). Configuring Watch And Notification
    For detailed <A class=bodylinkwhite href="http://www.software-to-convert.com/divx-avi-conversion-software/divx-avi-to-h264-software.html"><FONT face=tahoma,verdana,sans-serif color=#000 size=1>steps</FONT></A> please refer to: <B><A class=jive-link-external href="http://jaysensharma.wordpress.com/2010/01/07/e-mail-notification-using-wldf/">http://jaysensharma.wordpress.com/2010/01/07/e-mail-notification-using-wldf/</A></B>
    <P>
    Thanks
    Jay SenSharma
    <B><A class=jive-link-external href="http://jaysensharma.wordpress.com">http://jaysensharma.wordpress.com</A> (WebLogic Wonders Are here)</B></P>
    It is just the solution for my problem, It's very useful.

  • I deleted the Firefox maintainence program file, can I get it back?

    I was going to delete and reinstall firefox. There were Two files to delete, in programs. One was the browser and the other was a firefox maintenance program. I deleted that but then changed my mind on deleting the browser. I want to be sure Firefox stays safe and complete.
    Thank You for any help you can provide.

    Did you also delete the maintenance installer or only the maintenanceservice.exe program?
    *maintenanceservice_installer.exe
    *maintenanceservice.exe
    You can reinstall the current Firefox release to get the maintenance program back if you no longer have the files in the recycle bin.
    You can find the full version of the current Firefox 29.0.1 release in all languages and for all Operating Systems here:
    *http://www.mozilla.org/en-US/firefox/all.html

  • Erased Mail program, how can I get it back?

    Don't ask me why I erased the program, totally crazy, but now I would like it back and don't know how?
    Can you please help me?

    How to Use Pacifist to Replace Deleted OS X Applications
    Download the shareware utility Pacifist from VersionTracker or MacUpdate. Use it to extract a fresh copy of the missing item(s) from the file archives on your OS X installation DVD. The file archives are in the /System/Installations/ folder (use Go to Folder option in the Go menu of the Finder.)
    Here are Four Basic ways to use Pacifist (courtesy of George Orville.)
    A. Drag a .pkg icon onto the Pacifist window .....proceed to step 7.
    B. Click on “Open Package ....” and navigate to package desired and click “Open” in the open/save window.....proceed to step 7.
    C. Insert Mac OS X installer CD and when it mounts, navigate to .... Menu->Go->Go to Folder.
    In the path field enter or paste ....
    /Volumes/disc name/System/Installation/Packages (where disc name is the name of the CD/DVD that you inserted.
    • Click on the "Go" button .....
    • Drag a .pkg to Pacifist..... proceed to step 7.
    The package you'll need will have to be discovered by trial and error, but for most applications you should start with the Essentials.pkg and/or Additional Essentials.pkg.
    D. Insert your Mac OS X install disk 1 .... and open Pacifist.
    1. In Pacifist, select "Open Mac OS X Install Packages" ... dialog may appear asking for disk 2, then disk 3 and finally disk 1 again.... {if DVD is not used)...If “Stop Loading” is selected...the procedure will stop!!!
    2a. When loading is complete, a new window appears, click the triangle to display contents of each package...Select item and proceed to step 7.
    2b. or click the “Find” icon in the Pacifist window and type the name of the software you need.
    3. In the list that comes back, click the top most entry for the item that you want. ..... that is the one for the English language.
    4. On the top of the Pacifist window, click “verify” .... you will probably be prompted for your password.
    5. Enter checks for.... “verify permissions” and “verify file contents.” and click “verify” ....enter password when prompted.... you will get back output which may look like this:
    20 files were scanned.
    20 of 20 files were present on the hard disk.
    0 of 20 files had file permissions that did not match those specified in the package.
    0 of 20 files had checksums that did not match those specified in the package.
    6. Click “close”. Go to step 7.
    Extract or Install........
    7. In the Toolbar (upper left), you now have the option to extract or install. Click a file in the lower list and those two icons will be enabled.
    8. If “Extract to...” is selected.... navigate to the location where the file will be placed, select “choose”, select “extract” in new dialog that appears,authenicate , if prompted, click “OK”.
    9. In the next dialog, click “Extract”.
    10. If “Install” is selected... dialog will appear with the location/path of the installed software. Click “Install”
    11. Type in your password, click “OK”
    • Pacifist will begin to extract files.
    12. In steps 8/10ß.... you also have the choice to “cancel”
    Notes.....
    • Pacifist may find that a file it is installing already exists on the hard disk. Pacifist will present you with an alert panel....
    Stop
    Leave original alone
    Update ..... Default selection
    Replace .... Replace option should only be used on full install packages

  • Can't get Thread IDs to display in server.log or syslog

    I'm trying to capture the Java thread IDs for a custom application. According to the SunOne documentation, the thread IDs are only available if you configure the app to use the syslog for logging... even then, the thread IDs are optional.
    I've configured the app server to log through the syslogd and turned up the logging to finest. Still no thread IDs output to the log. Any suggestions?

    I've read that page - several times. I still can't it to work. Part of the problem that page is that it's talking about adding an existing WIT to the backlog, instead of a custom WIT.
    I inherited a customized template and I'm trying to further customize it, which is probably adding to my struggle. Can you spot anything wrong or missing here?
    From categories.xml:
    <CATEGORY name="Team Backlog Item Category" refname="MyCompany.TeamBacklogItemCategory">
    <DEFAULTWORKITEMTYPE name="User Story" />
    <WORKITEMTYPE name="Spike" />
    <WORKITEMTYPE name="Bug" />
    <WORKITEMTYPE name="Technical Story" />
    <WORKITEMTYPE name="Report" />
    </CATEGORY>
    From process Settings:
    <RequirementBacklog category="MyCompany.TeamBacklogItemCategory" pluralName="Team Backlog Items" singularName="Team Backlog Item">
    <States>
    <State value="New" type="Proposed" />
    <State value="Approved" type="Proposed" />
    <State value="Committed" type="InProgress" />
    <State value="Done" type="Complete" />
    </States>
    <Columns>
    <Column refname="System.WorkItemType" width="100" />
    <Column refname="System.Title" width="300" />
    <Column refname="System.State" width="100" />
    <Column refname="Microsoft.VSTS.Common.Priority" width="50" />
    <Column refname="Microsoft.VSTS.Scheduling.Effort" width="50" />
    <Column refname="System.IterationPath" width="200" />
    <Column refname="System.Tags" width="200" />
    </Columns>
    <AddPanel>
    <Fields>
    <Field refname="System.Title" />
    </Fields>
    </AddPanel>
    </RequirementBacklog>
    Also, do I have to do anything special to get the web portal to "refresh" after making changes like this?
    Thank you. 

  • Application hangs and cannot get the dumps

    Hi all,
    I see an issue, the application hangs at a particular point very rarely, sometimes it works, sometimes it
    doesn't.
    Java version is 1.6.0_26
    It basically hangs in newInstance0 method of NativeConstructorAccessorImpl method.
    It goes into a native method, I extend my hand to seek help on this to know if there any ways to debug native code in java or enabling any other debug flags or getting debug softwares, etc.
    Thanks,
    Kalpa.

    If you are using the same computer, your files should all still be the same.  What OS X version did you upgrade from?  There may be some software that was incompatible but that would be placed in a folder labled "Uncompatible Software".  Other then that, all your files should have stayed where they were and only the OS X should have been updated.

  • How can i get tread dump from JVM on windows

    I know in unix u can get via kill -3. any pointers on windows...
    Thanks
    Nitin.

    If you have access to the starting DOS window, hit CTRL-BREAK

Maybe you are looking for

  • Errors in data transfer process

    Hi,   i'm getting "Errors in data transfer process" message when i try to run conntrans. when i see the detials error log in trouble shooting ( in client console), i get this following message in detials ( see the bold letters). can some one help me.

  • Errors On Upstream????

    Hey guys, I am wondering if anyone else is having this issue. i have recently just moved to BT BB and excpet for a few wirless issue to start with i am very happy But.............................. i seem to have an amazing amount of CRC's errors on m

  • Values not populated in AET STATE RECORD

         Hi all, I have a state record with the fields PROCESS_INSTANCE RUN_CNTL_ID OPRID COUNTER ACCOUNTING_DT FZAM_COUNTER FROM_DT1 TO_DT1 SOURCE I am fetching values into the above state record from z tables  in my app engine. Step :step 02  Action :S

  • Business Content Upgrade Activation Procedure

    Hello Everyone,   I'm looking for a procedure or best practices document that will help me with the steps I need to follow when activating business content due to an upgrade when some of the objects have already been activated and are being used in P

  • Instrument driver not show up

    I download the instrument driver for Agilent Signal Generator E4438C from NI, and unzip it to the folder instr.lib, restart the labview program, but it doesn't show up in the function palette -> Instrument I/O -> Instrument Driver. I also download th