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.
Similar Messages
-
Configuring WLDF to recieve email Alerts in Case of Out of Memory Errors
Hi All,
I need help regarding configuring WLDF to receive email notifications in case there us an outofmemory or any other critical failure in the logs. I followed the documentation but i am not able to get it right. Do i need to write a seperate mailing program or just need to provide the email address in the console.
Any suggestion will be helpful,
Thanks,
MukulJay 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. -
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 AMYulia_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) -
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
MarkusHere 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. -
Thread: Out of memory error
I'm running a program that reads a file of more than 20k lines. Each line of this file is being processed by a thread. Sometimes the program is being halted with the out of memory error.
What can I do to solve this problem ? Is it better to change the logic of this program and instead of calling a new thread for each line, call few threads to be responsible of processing multiple lines ?
The current java version is 1.4.2.13. Upgrading it to the most recent version can solve the problem ?
I'm running it with the following configuration:
"-Xms1024m -Xmx2048m -XX urvivorRatio=10"
Thanks a lot,
Marcos.Indeed this design is flawed. It is an old system that came to my hands and now I have to fix some bugs on it.
What is the difference between calling thousand of threads and having this backport of concurrent to take care of it ? I mean, isn't the jvm responsible for managing the both cases ?
Using the backport of concurrent and defining a limited size thread pool, what will happen if the number of lines in the file is greater than the size of this pool ?
Do you have an example or a link to where I can get a good example on how to use it ?
Thanks for helping! -
How can I solve out of memory error on excell file in PL/SQL
Hi,
I'm new on PL/SQL. One of the PL/SQL code which is created excell report got out of Memory error. The first reason of this error, excell file not supported more than 65536 data. So I change the excell file separeted sheets. So that the single sheet size cannot exceed 65536 data.
All the data are held on system cach and if many user want to take the report the they would get an out of memory error.
So I want to change the code like that; when out of memory exception raises,
the old excell file save to disk and new excell file is created,
and go on to write the new file without exiting the program.
At the end of the data all the excell file append and show only one file to the user.
I do know how to save the file and create a new file. But I don't know how can PL/SQL program to turn back to loop again when the exception occurs.
Is anyone help me on this issue?
Here is my code
Thank you
dworkbook:=hssfworkbook.new;
dCurrentItem := Get_Block_Property(pCurrentBlock, FIRST_ITEM);
while not (name_in('system.last_record')='TRUE') loop
/* The data would be written to the excell file column order. */
if (dRow=0) then
/* Create a new sheet */
elsif (dRow <= dMaxWorksheetNum) then
/* Data of the report are written here. The data are written in column order */
if (dRow > dMaxWorksheetNum) then
/* give dRow and dColumn intial value */
/* increase worksheet number */
end if; /* End of if (dRow=1) */
if (isWritten) and not name_in('system.last_record')='TRUE'then
/* if not at the end of the record and the previously read record is written to the file
, then go to next record */
next_record;
end if;
/* save excell report */
workbookwriter.save(dworkbook,global.gethome||dFileName);
web.show_document('/users/'||dFileName,'_BLANK');
/* when exceptions occurs */
EXCEPTION
WHEN ORA_JAVA.EXCEPTION_THROWN THEN
begin
javaException := ORA_JAVA.LAST_EXCEPTION;
-- Print out the Exception by using the toString()
-- Method of the exception Object
javaException2 := Exception_.new(javaException);
mess(27002,Exception_.getMessage(javaException2));
-- and clean up
ORA_JAVA.CLEAR_EXCEPTION;
exception
WHEN ORA_JAVA.JAVA_ERROR THEN
-- In this case, the error would be
-- Argument 1 can not be null
mess(27002,ORA_JAVA.LAST_ERROR);
--Clean up
ORA_JAVA.CLEAR_ERROR;
end;
WHEN ORA_JAVA.JAVA_ERROR THEN
-- In this case, the error would be
-- Argument 1 can not be null
message(ORA_JAVA.LAST_ERROR);
--Clean up
ORA_JAVA.CLEAR_ERROR;No need to double-post... most questions are answered pretty quickly...
-
Report with more than 600 kb image - BO Server getting Out Of memory Error
Hi,
We have a report which displays images and size is above 600 KB.We are getting an "Out Of memory" Error while previewing this report in Business Object Server.
In another situation we tried by giving a dynamic path to the OLE object, but the report is not showing error. We are not able to view the image whose size is more than 600KB
Notes: 1. Image is stored as a BLOB in Oracle Database
2. Connection used inside the report is OLEDB
3. UNIX Environment
Regards,
SathishPlease re-post if this is still an issue to the Business Objects Forum or if you have a valid support contract create a case on line.
-
Out of memory error - JS Runtime: How many users can one connect?
Not talking video here. Talking interactive apps, like chat. Ours crashes at about 500 connected users. When I report this I'm told "make sure you're not creating too many objects serverside" or "increase the JSRuntimeSize setting in your application.xml file to the max".
Have now done both of those things but still get this out of memory error. Let's say I optomized my app and got 100% more connection capacity. That would be 1,000 connected users - still nowhere near enough.
Are my dreams of 6,000 or 10,000 connected users enjoying all of the fruits of the FMS interactivity pipe dreams? Is it not meant for sessions of that size? Where does one find documentation or advice or application assistance on this issue?
How do large social media applications connect so many people concurrently.
Thoughts appreciated.
ThanksYes. I'm using the max.
<RuntimeSize>51200</RuntimeSize>
See:
http://help.adobe.com/en_US/FlashMediaServer/3.5_AdminGuide/WS5b3ccc516d4fbf351e63e3d119f2 926bcf-7ff0.html#WS5b3ccc516d4fbf351e63e3d119f2926bcf-7ed2
Don't think 100MB or 200MB would be valid settings. -
Spooling to Text File - 30 million records - Getting Out of Memory Error
Hi All,
I have an extremely large oracle table that I need to spool to a .txt file. The table has approximately 30 million records. I'm using Toad For Oracle version 10.5 and I'm on Oracle 10g. I've tried running the following spool command a few times and it keeps crashing...I'm getting a "Out of Memory" error in my Toad window when I execute it as a script. Here's the code:
Spool on
set heading off
SET PAGESIZE 0
SET TRIMSPOOL ON
SET LINESIZE 100
set feedback off
set echo off
set termout off
Spool "C:\spooledtext.txt"
select
column1
from test_table
order by
column2,
column1
Spool off;
An ideas as to how I can get this query to spool to a text file without crashing and running out of memory?
Thanksuse sqlplus.
Or select smaller chunks and use copy to concat them afterwards.
Sybrand Bakker
Senior Oracle DBA -
Getting HeapDump on out of memory error when executing method through JNI
I have a C++ code that executes a method inside the jvm through the JNI.
I have a memory leak in my java code that results an out of memory error, this exception is caught in my C++ code and as a result the heap dump is not created on the disk.
I am running the jvm with
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=C:\x.hprof
Any suggestions?
ThanksI'll rephrase it then.
I have a java class named PbsExecuter and one static method in it ExecuteCommand.
I am calling this method through JNI (using CallStaticObjectMethod). sometimes this method causes the jvm to throw OutOfMemoryError and I would like to get a heap dump on the disk when this happens in order to locate my memory leak.
I've started the jvm with JNI_CreateJavaVM and I've put two options inside the JavaVMInitArgs that is used to create the Jvm. -XX:+HeapDumpOnOutOfMemoryError and -XX:HeapDumpPath=C:\x.hprof
which supposed to create a heap dump on the disk when OutOfMemoryError occurs.
Normally if I would execute normal java code, when this exception would occur and I wouldn't catch it the Jvm would crash and the heap dump would be created on the disk.
Since I need to handle errors in my C++ code I am use ExceptionOccured() and extracts the exception message from the exception it self and write it.
For some reason when I execute this method through JNI it doesn't create the dump. -
Photoshop keeps on getting out of memory error after installing Premier Pro
I just upgrade my CS to CC. Yesterday I installed Photoshop and did my work without any problem but today after installing Premier and After Effect, I keep on getting out of memory error when I'm working even though I don't have any other application running accept photoshop alone. The file I'm working on is a small file, iphone plus size interface. Basically I can open the file, add blur effect and try to type text I will get photoshop telling me that my system is out of memory. Restarting photoshop give the same problem, restarting my computer give the same problem, ie do one thing and next will give memory not enough.
I don't think my system is slow as it is workstation with dual processor and 12 gig of ram, windows 7 64bits 1gb dedicated memory for graphic card.
I uninstall Premier and After Effect and suddenly the problem go away. Photoshop work as per normal. I didn't have the time to reinstall premier again but will try to do it tonight or tomorrow
Anyone experience such problem before?When you get that error leaver the error showing and use something the can show you how much free disk space there is left on Photoshop scratch disk. It may be a problem with scratch storage space not ram storage space. I see Photoshop use much more scratch space the ram. I have seen Photoshop using less than 10GB of ram on my machine leaving 30GB of free ram on my system unused while using over 100GB of scratch space.
-
Thread Count and Out Of Memory Error
Hi,
I was wondering if setting the ThreadPoolSize to a value which is too low can
cause an out of memory error. My thought is that when it is time for Weblogic
to begin garbage collection, if it does not get a thread fast enough it is possible
that memory would be used up before the garbage collection takes place.
I am asking this because I am trying to track down the cause of an out-of-memory
occurrence, while at the same time I believe I need to raise the ThreadPoolSize.
Thanks,
MarkOops ...
I was wondering if setting the ThreadPoolSize to a value which is too
low can cause an out of memory error.No, but the opposite can be true.
My thought is that when it is time for Weblogic
to begin garbage collection, if it does not get a thread fast enough it is
possible that memory would be used up before the garbage collection
takes place.Weblogic doesn't do GC ... that's the JVM and if it needs a thread it will
not be using one of Weblogic's execute threads.
> I am asking this because I am trying to track down the cause of an
out-of-memory occurrenceIt could be configuration (new vs. old heap for example), but it is probably
just data that you are holding on to or native stuff (e.g. type 2 JDBC
driver objects) that you aren't cleaning up correctly.
while at the same time I believe I need to raise the ThreadPoolSize.Wait until you fix the memory issue.
Peace,
Cameron Purdy
Tangosol, Inc.
Clustering Weblogic? You're either using Coherence, or you should be!
Download a Tangosol Coherence eval today at http://www.tangosol.com/
"Mark Glatzer" <[email protected]> wrote in message
news:[email protected].. -
Getting out of memory errors in Indesign 5.5. What can I do to fix it?
Getting out of memory errors in Indesign 5.5. What can I do to fix it?
Tell your dumb friend to pay you for a new phone as he damaged it. You cannot get help here for a phone that has been taken apart, as it is not user servicible. Your dumb friend also voided your warranty and, even if the warranty were expired Apple will never touch that phone.
Time to get smarter friends. -
Why do I get a Track out of memory error while running open loop frequency response?
MatrixX Build 61mx1411: I get a "Track out of memory" error when I run the Open Loop Frequency Response from the MatrixX pull down tools. What can I do to prevent this? We are running on an HP B1000 with 768 MB of RAM under HP-UX 10.2.
In the old days of Mx say Version 5 and prior the user actually selected the amount of memory that would be allocated. Depending on the size of the model etc. you would have to allocate memory. In version 6.0 and going forward there is no need for the user to manually allocate the memory.
Build {rstack=50000,istack=200000,sstack=50000,cstack=500 000}
If this is a command in a script file that you are running and the error is resulting from that then I would try commenting out everything after the letter d in the word build and then starting it back up.
i.e. only use Build
I don't believe that there is a way to manually allocate the initial SystemBuild Stack size.
I believe initially the stack size is set to 10010.
However, one way
you can manually set the initial SystemBuild stack size,is to create a large StateSpace as soon as you start up SystemBuild. This will prevent piece-meal reallocs while using SystemBuild.
You can created a new SuperBlock in SystemBuild and then drop down a StateSpace Block with 199 inputs and 199 Outputs and 1 State and entered ones(200,200)as the StateSpace Matrix without any problems. This would resize this internal stack to at least 40000.
You really should not have to do this but if that helps then you might think about doing this in your startup.ms file you could use SBA or load the file then you could delete the superblock and begin working.
"Bob" gave me this little tid bit.
Please let me know if any of this is of use.
Garrett
Garrett Thurston
[email protected]
Phone: 781.993.5540 -
Out Of Memory Error : unable to create new native thread
Hi Experts,
The details are given below -
1. Sun Java System Application Server 7
2. Java 1.4.2_05
3. Solaris 9 (OS)
4. RAM 8 GB
There are 3-4 applications deployed on this Sun Server 7. Some times we got "Out Of Memory" Error while displaying any jsp. Then we restart the Sun Server, the problem is resolved for some time.
This all is happening on production environment. We can not start the Sun Server again & again on production.
We have also set the java parameters as -Xms 3584M & -Xmx 3584M i.e 3.5 GB around.
If we change this parameter means less or more from 3584M, then our site becomes down.
Please help us out as soon as possible.How do you expect anyone to give you a sensible answer to this? What server are you using to execute the JSP's? Tomcat? Is the code in the JSP causing the out of mem or is it a server related issue (unlikely...)?
Drill down to the core of the problem before posting...
Maybe you are looking for
-
Worth replacing a hard drive on a 3 year old computer?
I'm using a Powerbook G4 12" with 1.33 GHZ and the original hardware, purchased it back in Fall '03. The past couple of days, it has started to act up - about 60% of the time, it wouldn't even turn on properly, failing to even reach the Apple startup
-
10.2.0.3 Windows 64bits (AMD) CRash
Hi,I found a issue on 10.2.0.3 64 windows. Sometimes if one client 8.0.5 or 8.0.6 try to connect Database , the instance crash. I try to find a solution with Oracle but until now no solution. I have some clients with forms 6i instaled and a 10g clien
-
Intercompany Billling - pricing conditions are getting redetermined
Dear friends, I have one issue of Pricing conditions being redetermined in the Intercompany Billig Document. Whatever values I maintain in the sales order should follow to Intercompany Invoice. For eg PI01 value maintained in the slaes order is 782.1
-
How to set table cell renderer in a specific cell?
how to set table cell renderer in a specific cell? i want set a cell to be a button in renderer! how to do? any link or document can read>? thx!
-
Just purchased Documents (paid version) for my iPad. I can create files and save them in Dropbox but cannot read them on my Mac. How do you open these files. I am also supposed to be able to edit them as well.