What caused the "java.lang.OutOfMemoryError (no stack trace available)"?
We just met another problem: after I modified the BDM file on TUXEDO and bdmconfig.xml
file on WEBLOGIC (with no ACL or authentication setup on both side), when I booted
up the WebLogic 6.1 server, the ULOG file of Tuxedo says that the connection has
been set up, however, I got the "java.lang.OutOfMemoryError (no stack trace available)"
on the WebLogic side. I tried to enlarge the Java heap size even to 1024m, but it
has no use. If I delete the WTC setting then WebLogic works fine.
Could somebody helps me on this? Because we have a very tight schedule on development,
I do appreciate your quick response.
Thanks!
Bill
Hi,
I am getting same OutofMemoryError. I could not understand change in bdmconfig.xml
removed the outofmemory error.
what is bdmconfig.xml file and you specified port#?
I could not able to see any port # in the config.xml...
any help is appreciated.
RajKumar
"Bill Yuan" <[email protected]> wrote:
>
Bob,
Another expert in our company told me that we should use a different
PORT# (kind
of DUMMY port) in the bdmconfig.xml file on WebLogic side, instead of
the real WebLogic
instance PORT#. We tried and the OutOfMemoryError disappeared, and the
WTC connection
works OK. We don't know why should we do this, maybe it is a bug or some
hardware
requirement.
Anyway, thank you very much for your help and quick respondse!
have a good day!
Bill
Bob Finan <[email protected]> wrote:
Bill,
Check the logs to see if the out of memory is the only execption orif
it is the last exception. It could be that there is something happening
earlier on that you are missing.
There are also other JVM problems that can arise besides the heap
size. The Hotspot VM had an issue where you needed to set a maximum
permanent generation size( helps garbage collection tuning I think).
(-XX:MaxPermSize=32m for jdk130,64m for jdk131). It comes into
play when you are loading many classes.
Bob Finan
Bill Yuan wrote:
Bob,
Thanks! We didn't set MTYPE in both BDMCONFIG files in Tuxedo and
WebLogic
sides.
From the WTC document and Tuxedo document, it says that if MTYPE is
not
specified,
the default is to turn ENCODING/DECODING on. Do you see any other
possibilities?
Thanks!
Bill
Bob Finan <[email protected]> wrote:
Bill,
One possible reason is if MTYPE is set, in the DMCONFIG on the
Tuxedo side, as part of your remote domain definitions of the WTC
domain. This should not be set or set it to NULL. This problem occurs
because encoding/decoding is always needed between java and non-java
domains.
Bob Finan
Bill Yuan wrote:
We just met another problem: after I modified the BDM file on TUXEDO
and
bdmconfig.xml
file on WEBLOGIC (with no ACL or authentication setup on both side),
when
I booted
up the WebLogic 6.1 server, the ULOG file of Tuxedo says that the
connection
has
been set up, however, I got the "java.lang.OutOfMemoryError (no
stack
trace available)"
on the WebLogic side. I tried to enlarge the Java heap size even
to
1024m,
but it
has no use. If I delete the WTC setting then WebLogic works fine.
Could somebody helps me on this? Because we have a very tight scheduleon development,
I do appreciate your quick response.
Thanks!
Bill
Similar Messages
-
Images Browser Dialog gets OutOfMemoryError no stack trace available
Hello all.
I am writing a dialog to list the image by showing their thumbnail, which like the style of ACDSee or CoffeeCup Free Viewer Plus.
For this, I build 3 objects(thumbCanvas,thumbPanel,testingfrm). thumbCanvas - displays the thumbnail with aspect ratio as original image
thumbPanel - contains thumbCanvas and image file name
testingfrm - put the thumbPanel of the list of images row by row
When I run testingfrm by listing 11 images, the following error is given out.
java.lang.OutOfMemoryError
<<no stack trace available>>
I would be appreciated if anyone can suggest the methodology and hints to do that or state what is the problem of my coding and methodology. Thanks.
The code of 3 objects are as following:
//thumbCanvas.java
import java.awt.*;
import java.io.*;
public class thumbCanvas extends Canvas {
public int new_h=0, new_w=0;
private double thumb_h, thumb_w;
private double img_h, img_w;
private double ratio_h, ratio_w, ratio_thumb;
private String imgFileName;
private Image thumbImg;
/** Creates new thumbCanvas */
public thumbCanvas(int w, int h) {
thumb_h = h;
thumb_w = w;
public thumbCanvas(String f, int w, int h) {
imgFileName = f;
thumb_h = h;
thumb_w = w;
setFile(imgFileName);
public void setThumbSize(int w, int h) {
thumb_h = h;
thumb_w = w;
repaint();
public void setImage(Image i) {
MediaTracker tracker = new MediaTracker(this);
thumbImg = i;
tracker.addImage(thumbImg,1);
try {
tracker.waitForAll();
} catch (java.lang.InterruptedException e) {}
if (tracker.checkAll()) {
img_h = thumbImg.getHeight(this);
img_w = thumbImg.getWidth(this);
if (img_h > thumb_h || img_w > thumb_w) {
ratio_h = thumb_h/img_h;
ratio_w = thumb_w/img_w;
ratio_thumb = java.lang.Math.min(ratio_h,ratio_w);
} else {
ratio_thumb = 1;
new_h = (int)(img_h*ratio_thumb);
new_w = (int)(img_w*ratio_thumb);
setSize(new_w, new_h);
repaint();
public void setFile(String f) {
Image img = Toolkit.getDefaultToolkit().getImage(f);
setImage(img);
public void paint(Graphics gr) {
if ( thumbImg != null ) {
gr.drawImage(thumbImg, 0, 0, new_w, new_h, this);
//thumbPanel.java
import javax.swing.*;
import java.io.*;
public class thumbPanel extends JPanel {
/** Creates new form thumbPanel */
public thumbPanel(String f, int w, int h) {
int thumb_w, thumb_h, thumb_x;
int label_w, label_h;
initComponents();
thumb_w = (int)(w*0.9);
thumb_h = (int)(h*0.7);
label_w = (int)(w*0.9);
label_h = (int)(h*0.2);
tc = new thumbCanvas(f, thumb_w, thumb_h);
thumb_x = (int)((w - tc.new_w)/2);
tc.setLocation(thumb_x,5);
add(tc);
thumbLabel = new JLabel("hihi");
add(thumbLabel);
thumbLabel.setBounds(thumb_x,thumb_h+1,label_w,label_h);
setSize(w,h);
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
private void initComponents() {//GEN-BEGIN:initComponents
setLayout(null);
setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.RAISED));
}//GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables
// End of variables declaration//GEN-END:variables
private JLabel thumbLabel;
thumbCanvas tc;
//testingfrm.java
public class testingfrm extends javax.swing.JDialog {
/** Creates new form testingfrm */
public testingfrm(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
int i;
int row,col;
for (i=1;i<=11;i++) {
row = (int)((i-1)/3);
col = ((i-1)%3)+1;
tp = new thumbPanel("D:\\ACN\\MultiMed\\Oracle\\images\\ts\\add0000" + i + ".jpg",120,120);
tp.setLocation(col*120,row*120);
getContentPane().add(tp);
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
private void initComponents() {//GEN-BEGIN:initComponents
getContentPane().setLayout(null);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
closeDialog(evt);
pack();
}//GEN-END:initComponents
/** Closes the dialog */
private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog
setVisible(false);
dispose();
System.exit(0);
}//GEN-LAST:event_closeDialog
* @param args the command line arguments
public static void main(String args[]) {
new testingfrm(new javax.swing.JFrame(), true).show();
// Variables declaration - do not modify//GEN-BEGIN:variables
// End of variables declaration//GEN-END:variables
thumbPanel tp;
Sorry for putting the code here. However, I hope it can be helpful for solving my problem. Thanks again.Thanks. The problem is already solved.
It is because I load too much full size images. When I load the resized images generated by Image.getScaledInstance(int,int,int). It seems much better.
Thanks again your suggestion. -
Don't understand the java.lang.OutOfMemoryError
Hi there,
I try to create an 'About' frame for a small programm I created and I get an java.lang.OutOfMemoryError which I don't understand. Can somebody help?
Here is my code:
* TabbedPaneDemo.java is a 1.4 example that requires one additional file:
* images/middle.gif.
import javax.swing.JTabbedPane;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JComponent;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.KeyEvent;
import java.awt.Dimension;
import java.awt.Rectangle;
public class TabbedAbout extends JPanel {
JLabel label=new JLabel("PRODUCT INFORMATION ");
JLabel pv=new JLabel("Product version:");
JLabel pvR=new JLabel("1.0");
JLabel javav=new JLabel("Java Version:");
JLabel javavR=new JLabel("1.4.2");
JLabel sqlv=new JLabel("PostgreSQL Version:");
JLabel sqlvR=new JLabel("8.1");
JLabel pt=new JLabel("Programming Team:");
JLabel onoma1=new JLabel("Gkisis Traianos");
JLabel onoma2=new JLabel("Zafeiropoulos Ioannis");
JLabel onoma3=new JLabel("Supervisor Teacher:");
JLabel onoma3R=new JLabel("Stamatis Dimosthenis");
JLabel alr=new JLabel("Product developed as dissertation for the ATEI");
JLabel alr2=new JLabel("Thessaloniki on autumn 2006.");
JLabel alr1=new JLabel("All rights reserved");
ImageIcon icon = createImageIcon("images/folder_sticky.gif");
ImageIcon icon2 = createImageIcon("images/tick.gif");
public TabbedAbout() {
JLabel panel1 = new JLabel();
JFrame frame = new JFrame("About");
JFrame.setDefaultLookAndFeelDecorated(true);
frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
//super(new GridLayout(1, 1));
JTabbedPane tabbedPane = new JTabbedPane();
panel1.setIcon(new ImageIcon("images/TakeANoteProgress.jpg"));
tabbedPane.addTab("About", icon, panel1);
tabbedPane.setMnemonicAt(0, KeyEvent.VK_1);
JPanel panel2 = new JPanel();
//JFrame frame2 = new JFrame();
panel2.setLayout(null);
label.setIcon(icon2);
label.setBounds(new Rectangle(20, 20, 200, 25));
pv.setBounds(new Rectangle(20, 40, 175, 45));
pvR.setBounds(new Rectangle(180, 40, 175, 45));
javav.setBounds(new Rectangle(20, 60, 175, 45));
javavR.setBounds(new Rectangle(180, 60, 175, 45));
sqlv.setBounds(new Rectangle(20, 80, 175, 45));
sqlvR.setBounds(new Rectangle(180, 80, 175, 45));
pt.setBounds(new Rectangle(20, 100, 175, 45));
onoma1.setBounds(new Rectangle(180, 100, 175, 45));
onoma2.setBounds(new Rectangle(180, 120, 175, 45));
onoma3.setBounds(new Rectangle(20, 140, 175, 45));
onoma3R.setBounds(new Rectangle(180, 140, 175, 45));
alr.setBounds(new Rectangle(20, 190, 500, 45));
alr2.setBounds(new Rectangle(20, 210, 500, 45));
alr1.setBounds(new Rectangle(20, 250, 500, 45));
panel2.add(label);
panel2.add(pv);
panel2.add(pvR);
panel2.add(javav);
panel2.add(javavR);
panel2.add(sqlv);
panel2.add(sqlvR);
panel2.add(pt);
panel2.add(onoma1);
panel2.add(onoma2);
panel2.add(onoma3);
panel2.add(onoma3R);
panel2.add(alr);
panel2.add(alr2);
panel2.add(alr1);
tabbedPane.addTab("Detail", icon, panel2);
tabbedPane.setMnemonicAt(1, KeyEvent.VK_2);
tabbedPane.setSize(new Dimension(400, 300));
//Add the tabbed pane to this panel.
add(tabbedPane);
//Uncomment the following line to use scrolling tabs.
//tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
//Create and set up the content pane.
JComponent newContentPane = new TabbedAbout();
newContentPane.setOpaque(true); //content panes must be opaque
frame.getContentPane().add(new TabbedAbout(),
BorderLayout.CENTER);
//Display the window.
frame.setLocationRelativeTo(super.getComponent(0));
frame.pack();
frame.setResizable(false);
frame.setVisible(true);
protected JComponent makeTextPanel(String text) {
JPanel panel = new JPanel(false);
JLabel filler = new JLabel(text);
filler.setHorizontalAlignment(JLabel.CENTER);
//panel.setLayout(new GridLayout(1, 1));
panel.add(filler);
return panel;
/** Returns an ImageIcon, or null if the path was invalid. */
protected static ImageIcon createImageIcon(String path) {
java.net.URL imgURL = TabbedAbout.class.getResource(path);
if (imgURL != null) {
return new ImageIcon(imgURL);
} else {
System.err.println("Couldn't find file: " + path);
return null;
* Create the GUI and show it. For thread safety,
* this method should be invoked from the
* event-dispatching thread.
// private static void createAndShowGUI() {
//Make sure we have nice window decorations.
//Create and set up the window.
public static void main(String[] args) {
// //Schedule a job for the event-dispatching thread:
// //creating and showing this application's GUI.
//javax.swing.SwingUtilities.invokeLater(new Runnable() {
// public void run() {
TabbedAbout a=new TabbedAbout();
}Thanks in advanceI will try your suggestions. But still I don't understand. It was running independently very ok and it was what I wanted. It was built excatly as the example in
With run and main etc etc. But when I put it in my rest program it started and stack overflow error. Then I tried to change, change, change and got this last form.
This is what I had before but didn't work with my rest program.
* TabbedPaneDemo.java is a 1.4 example that requires one additional file:
* images/middle.gif.
import javax.swing.JTabbedPane;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JComponent;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.KeyEvent;
import java.awt.Dimension;
import java.awt.Rectangle;
public class TabbedAbout extends JPanel {
JLabel label=new JLabel("PRODUCT INFORMATION ");
JLabel pv=new JLabel("Product version:");
JLabel pvR=new JLabel("1.0");
JLabel javav=new JLabel("Java Version:");
JLabel javavR=new JLabel("1.4.2");
JLabel sqlv=new JLabel("PostgreSQL Version:");
JLabel sqlvR=new JLabel("8.1");
JLabel pt=new JLabel("Programming Team:");
JLabel onoma1=new JLabel("Gkisis Traianos");
JLabel onoma2=new JLabel("Zafeiropoulos Ioannis");
JLabel onoma3=new JLabel("Supervisor Teacher:");
JLabel onoma3R=new JLabel("Dimosthenis Stamatis");
JLabel alr=new JLabel("Product developed as dissertation for the ATEI Thessaloniki on autumn 2006.");
JLabel alr1=new JLabel("All rights reserved");
public TabbedAbout() {
//super(new GridLayout(1, 1));
JTabbedPane tabbedPane = new JTabbedPane();
ImageIcon icon = createImageIcon("images/folder_sticky.gif");
JLabel panel1 = new JLabel();
panel1.setIcon(new ImageIcon("images/TakeANote.jpg"));
tabbedPane.addTab("About", icon, panel1);
tabbedPane.setMnemonicAt(0, KeyEvent.VK_1);
JPanel panel2 = new JPanel();
JFrame frame = new JFrame();
panel2.setLayout(null);
label.setBounds(new Rectangle(170, 20, 150, 25));
pv.setBounds(new Rectangle(90, 40, 175, 45));
pvR.setBounds(new Rectangle(220, 40, 175, 45));
javav.setBounds(new Rectangle(90, 60, 175, 45));
javavR.setBounds(new Rectangle(220, 60, 175, 45));
sqlv.setBounds(new Rectangle(90, 80, 175, 45));
sqlvR.setBounds(new Rectangle(220, 80, 175, 45));
pt.setBounds(new Rectangle(90, 100, 175, 45));
onoma1.setBounds(new Rectangle(220, 100, 175, 45));
onoma2.setBounds(new Rectangle(220, 120, 175, 45));
onoma3.setBounds(new Rectangle(90, 140, 175, 45));
onoma3R.setBounds(new Rectangle(220, 140, 175, 45));
alr.setBounds(new Rectangle(30, 170, 500, 45));
alr1.setBounds(new Rectangle(170, 190, 500, 45));
panel2.add(label);
panel2.add(pv);
panel2.add(pvR);
panel2.add(javav);
panel2.add(javavR);
panel2.add(sqlv);
panel2.add(sqlvR);
panel2.add(pt);
panel2.add(onoma1);
panel2.add(onoma2);
panel2.add(onoma3);
panel2.add(onoma3R);
panel2.add(alr);
panel2.add(alr1);
tabbedPane.addTab("Detail", icon, panel2);
tabbedPane.setMnemonicAt(1, KeyEvent.VK_2);
tabbedPane.setSize(new Dimension(400, 300));
//Add the tabbed pane to this panel.
add(tabbedPane);
//Uncomment the following line to use scrolling tabs.
//tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
protected JComponent makeTextPanel(String text) {
JPanel panel = new JPanel(false);
JLabel filler = new JLabel(text);
filler.setHorizontalAlignment(JLabel.CENTER);
//panel.setLayout(new GridLayout(1, 1));
panel.add(filler);
return panel;
/** Returns an ImageIcon, or null if the path was invalid. */
protected static ImageIcon createImageIcon(String path) {
java.net.URL imgURL = TabbedAbout.class.getResource(path);
if (imgURL != null) {
return new ImageIcon(imgURL);
} else {
System.err.println("Couldn't find file: " + path);
return null;
* Create the GUI and show it. For thread safety,
* this method should be invoked from the
* event-dispatching thread.
private static void createAndShowGUI() {
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(true);
//Create and set up the window.
JFrame frame = new JFrame("About");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Create and set up the content pane.
JComponent newContentPane = new TabbedAbout();
newContentPane.setOpaque(true); //content panes must be opaque
frame.getContentPane().add(new TabbedAbout(),
BorderLayout.CENTER);
//Display the window.
frame.pack();
frame.setVisible(true);
public static void main(String[] args) {
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}But independetly was working just fine. Excatly as I wanted
Message was edited by:
sickboy -
Any suggestions on solving the "java.lang.OutOfMemory" error message?
Hi, our application is running on WLS61 and calls Tuxedo services (on Tuxedo 71)
through WTC.
What the problem we got is: about every 6-7 days, our application becomes out
of functioning and the WTC call returns the "TPEINVAL - invalid arguments given".
But in the "weblogic.log" file it logs the error message as
"####<Sep 7, 2002 1:31:19 AM CDT> <Error> <Management> <awhq6394.whq.ual.com>
<ECSserver> <Application Manager Thread> <> <> <000000> <Throwable while poller
running>
java.lang.OutOfMemoryError
<<no stack trace available>>
Please help us on the following questions:
(1) From your experiences, is it really a Memory-Leak kind of problem or WTC-related
problem, and if you have such experience, how did you solve the problem?
(2)We use the DEFAULT value of "max-beans-in-cache" (to be 1000) for stateful
and entity beans, and "max-beans-in-free-pool" (unlimited, depends on memory)
for stateless beans. Does this might cause the POSSIBLE memory-leak problem? By
the way, there are about 3000 transactions per day for our application.
Also, please give us any suggestions you think is necessary.
Thanks a lot!
Bill- Do you get the error messages in jserv.log?
- Have you read Note:119163.1 (How to set the heap size for the iAS/Jserv JVM) which ought to be avaliable on metalink? -
Weblogic Server -- java.lang.OutOfMemoryError
This is our production environment.
We have deployed a Integration Application (EAR) on weblogic integration server. this is running in single server instance.there is no clustering (we have limitation from connection system to WLI)
We get java.lang.OutOfMemoryError for every fortnight.
we have allocated 2GB memory to the server using startup script.unix server has 8GB memory.
automatic garbage collection happens properly for some days (for a week) .. We mean memory usage is between 1GB to 2GB .
We would like to know what is the reason for getting java.lang.OutOfMemoryError
Thanks & Regards
WLI teamI am working in weblogic.
whenever the power goes off ,the server is not gets starting ,it says
java.lang.OutOfMemoryError
<<no stack trace available>>
the domain is not working,
so i am creating a new domain,and i am working.
pls. tell me how to rectify this problem
thanks in advance -
Weblogic server start error: java.lang.OutOfMemoryError
Hi:
when i start weblogic server, i met following error !
java.lang.OutOfMemoryError
<<no stack trace available>>
why?
thanks!
starting output as follow :
C:\bea7\user_projects\zhudomain>startweblogic
C:\bea7\user_projects\zhudomain>echo off
CLASSPATH=C:\bea7\jdk131_03\lib\tools.jar;C:\bea7\weblogic700\integration\li
b\wl
pi-worklist.jar;C:\bea7\weblogic700\samples\server\eval\pointbase\lib\pbserv
er42
ECF172.jar;C:\bea7\weblogic700\server\lib\weblogic_sp.jar;C:\bea7\weblogic70
0\se
rver\lib\weblogic.jar;
PATH=.;C:\bea7\weblogic700\server\bin;C:\bea7\jdk131_03\bin;C:\PROGRA~1\RATI
ONAL
\RATION~1\NUTCROOT\bin;C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\bin\x11;C:\PRO
GRA~
1\RATIONAL\RATION~1\NUTCROOT\mksnt;c:\Oracle\Ora81\bin;C:\WINNT\system32;C:\
WINN
T;C:\WINNT\System32\Wbem;C:\PROGRA~1\ULTRAE~1;C:\CTEX\MiKTeX\TeXMF\miktex\bi
n;C:
\CTEX\MiKTeX\LocalT~1\cct\bin;C:\Program Files\Rational\common;C:\Program
Files\
Rational\ClearQuest;C:\Program Files\Rational\Rose\TopLink\;C:\Program
Files\Rat
ional\Rational Test;C:\bea7\jdk131_03\bin
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http://[hostname]:[port]/console *
C:\bea7\user_projects\zhudomain>"C:\bea7\jdk131_03\bin\java" -hotspot -Xms32
m -X
mx200m -Dweblogic.security.SSL.trustedCAKeyStore=C:\bea7\weblogic700\server\
lib\
cacerts -Dweblogic.Name=myserver -Dbea.home="C:\bea7" -Dweblogic.management.
user
name= -Dweblogic.management.password= -Dweblogic.ProductionModeEnabled= -Dja
va.s
ecurity.policy="C:\bea7\weblogic700\server\lib\weblogic.policy"
weblogic.Server
<2002-11-13 ÏÂÎç04ʱ21·Ö01Ãë> <Info> <Security> <090065> <Getting boot
identity
from user.>
Enter username to boot WebLogic server:system
Enter password to boot WebLogic server:
Starting WebLogic Server...
<2002-11-13 ÏÂÎç04ʱ21·Ö08Ãë> <Notice> <Management> <140005> <Loading
configurat
ion C:\bea7\user_projects\zhudomain\.\config.xml>
java.lang.OutOfMemoryError
<<no stack trace available>>
Hi JLK,
Now as you can see that you are getting "java.lang.OutOfMemoryError: PermGen space" during the activation on an application it means that you are application needs more space in the non-heap part of the JVM which is PermGen to create the Classes, Class Structures, Methods and Reflection Objects of this applications hence you are getting this issue.
Now how to solve this issue you try the following check list which would help you resolve this issue and overcome same type of issue in future
1). Make Sure that the PermGen Area is not set to a very less value.
2). Usually if an Application has Many JSP Pages in that case every JSP will be converted to a *.class file before JSP Request Process. So a large number of JSPs causes generation of a Large number of *.class files all these classes gets loaded in the PermGen area.
3). While allocating the -XX:MaxPermSize make sure that you follow a rough Formula… which works in most of the Application Servers.
MaxPermSize = (Xmx/3) —- Very Special Cases (One Third of maximum Heap Size)
MaxPermSize = (Xmx/4) —- Recommended (One Fourth Of maximum Heap Size
To get more information on this I would suggest you to have look at the below link which would surely help you in this case
Topic: OutOfMemory Causes and First Aid Steps?
http://middlewaremagic.com/weblogic/?p=4464
Regards,
Ravish Mody -
Java.lang.OutOfMemoryError - reasons
Hi
My application is throwing
Wed Mar 26 15:07:12 PST 2003:<E> <ServletContext-General> Servlet failed with
Exception
java.lang.OutOfMemoryError
<<no stack trace available>>
Wed Mar 26 15:07:12 PST 2003:<E> <Kernel> ExecuteRequest failed.
java.lang.OutOfMemoryError
<<no stack trace available>>
exception and hangs. At the time of this exception, my verbosegc shows
[GC 198159K->168522K(523136K), 0.0737788 secs]
So, it means I have enough JVM memory to run my application (correct me if I am
wrong). Then what could be reason for my application to throw OutOfMemory exception.
I though that my application is having some memory leak and thats why whenever
Full GC happens, its not freeing up JVM memory. But now I found that, when GC
or Full GC happens, it releases lot of memory back.
Please help me
Thanks
V PrakashThank you.
I am going to go with newSize and MaxnewSize=64m initially. Lets see.
"Kenneth A Kauffman" <[email protected]> wrote:
>
"Prakash" <[email protected]> wrote in message
news:3e8344bd$[email protected]..
My application runs on WLS 5.1 and jdk1.3. Thanks.
"Prakash" <[email protected]> wrote:
Hi
My application is throwing
Wed Mar 26 15:07:12 PST 2003:<E> <ServletContext-General> Servlet
failed
with
Exception
java.lang.OutOfMemoryError
<<no stack trace available>>
Wed Mar 26 15:07:12 PST 2003:<E> <Kernel> ExecuteRequest failed.
java.lang.OutOfMemoryError
<<no stack trace available>>
exception and hangs. At the time of this exception, my verbosegc shows
[GC 198159K->168522K(523136K), 0.0737788 secs]
So, it means I have enough JVM memory to run my application (correct
me if I am
wrong). Then what could be reason for my application to throw OutOfMemory
exception.
I though that my application is having some memory leak and thatswhy
whenever
Full GC happens, its not freeing up JVM memory. But now I found that,
when GC
or Full GC happens, it releases lot of memory back.
Please help me
Thanks
V PrakashTune your heap. Start the server with the following:
-Xms=512m -Xmx:512m -XX:PermSize=32m -verbose:gc -XX:NewSize=128m -XX:MaxNew
Size=128m
Then observe GC collections and see if it fails.
ken kauffman -
Reading Objects prompts java.lang.OutOfMemoryError
I have searched though this forum and still haven't found the answer. Please help!!!
I think that after running the below code I get this error:
java.lang.OutOfMemoryError
<<no stack trace available>>
I have created object files as large as 10MB, but this time it gives me an error.
Before the below code is run I query the database. This querying takes about 5 minutes in total. The data from the query is stored into a Fileset objects, and then I try to save those fileset objects into data files.
This exception is shown right after I finish reading from the database.
What could be wrong???
public void createFileObjects() {
try {
FileOutputStream ostream = new FileOutputStream(filesetChoice + "_object");
ObjectOutputStream p = new ObjectOutputStream(ostream);
if (filesetChoice.equals("Z")){
p.writeObject(fsZ);
else if (filesetChoice.equals("Y")){
p.writeObject(fsY);
else {
p.writeObject(fs0);
p.flush();
ostream.close();
catch (IOException io) {
System.out.println(" " + io);
Thanks!!!It probably would be possible, I just don't know how to do it. I have a fileset object that I am saving into a data file. If, instead, I take the contents of this object and save them one by one, it would be a tendious process and very error prone.
Why do you think I get this message? -
Install oracle9.2 fail in java.lang.outofmemoryerror
I have download Oracle9.2 for win2000 from otn.
But installer stop on 34%,the oraInstall2002-07-10_09-15-16AM.err file show:
java.lang.OutOfMemoryError
<<no stack trace available>>
What's the matter?I had the same problem, modifying the file Disk1\install\oraparam.ini, setting the new maximum heap size helped
JRE_MEMORY_OPTIONS=" -mx512m"
Don't know why, but heap size was quite low before and memory consumption went up to 140 mb during the installation.
Gilbert -
Error: java.lang.OutOfMemoryError when uploading CSV files to web server
Hi experts,
I have made a JSP page from which clients load csv files to web server. I am using Tomca 4.1 as my web server and JDK 1.3.1_09.
The system works fine when uploadiing small csv files, but it crashes when uploading large CSV files.
It gives me the following error:
java.lang.OutOfMemoryError
<<no stack trace available>>
This is the code that I used to load files....
<%
String saveFile = "";
String contentType = request.getContentType();
if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0))
DataInputStream in = new DataInputStream(request.getInputStream());
int formDataLength = request.getContentLength();
byte dataBytes[] = new byte[formDataLength];
int byteRead = 0;
int totalBytesRead = 0;
while (totalBytesRead < formDataLength)
byteRead = in.read(dataBytes, totalBytesRead, formDataLength);
totalBytesRead += byteRead;
String file = new String(dataBytes);
saveFile = file.substring(file.indexOf("filename=\"") + 10);
saveFile = saveFile.substring(0, saveFile.indexOf("\n"));
saveFile = saveFile.substring(saveFile.lastIndexOf("\\") + 1,saveFile.indexOf("\""));
int lastIndex = contentType.lastIndexOf("=");
String boundary = contentType.substring(lastIndex + 1,contentType.length());
int pos;
pos = file.indexOf("filename=\"");
pos = file.indexOf("\n", pos) + 1;
pos = file.indexOf("\n", pos) + 1;
pos = file.indexOf("\n", pos) + 1;
int boundaryLocation = file.indexOf(boundary, pos) - 4;
int startPos = ((file.substring(0, pos)).getBytes()).length;
int endPos = ((file.substring(0, boundaryLocation)).getBytes()).length;
String folder = "f:/Program Files/Apache Group/Tomcat 4.1/webapps/broadcast/file/";
//String folder = "10.28.12.58/bulksms/";
FileOutputStream fileOut = new FileOutputStream(folder + saveFile);
//out.print("Saved here: " + saveFile);
//fileOut.write(dataBytes);
fileOut.write(dataBytes, startPos, (endPos - startPos));
fileOut.flush();
fileOut.close();
out.println("File loaded successfully");
//f:/Program Files/Apache Group/Tomcat 4.1/webapps/sms/file/
%>
Please can anyone help me solve this problem for me...
Thanx...
DeepakI know it may be hard to throw away all this code, but consider using the jakarta fileupload component.
I think it would simplify your code down to
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
processFormField(item);
} else {
// item is a file. write it
File saveFolder = application.getRealPath("/file");
File uploadedFile = new File(saveFolder, item.getName());
item.write(uploadedFile);
}Most of this code was hijacked from http://jakarta.apache.org/commons/fileupload/using.html
Check it out. It will solve your memory problem by writing the file to disk temporarily if necessary.
Cheers,
evnafets -
Re: java.lang.OutOfMemoryError
Hi.
Probably 1 of the following possibilities:
1. WLS + your application is using up all of your defined heap space, and occasionally uses requires more than
you have allocated.
2. You have a memory leak.
Try increasing your java heap size in your start script. If the problem goes away then number 1 above was
most likely the problem. If the problem is merely delayed then you have a memory leak. You should use a
profiler such as JProbe or OptimizeIt to track down the offending class or classes. If they are WLS classes
then you should open a case with support.
BTW, you can monitor server heap useage via the console - mydomain|Servers|myserver|Monitoring|Performance.
Hope this helps,
Michael
amjad wrote:
I'm running weblogic 6.1 on win2k server. For some reason, the weblogic server gives
me the following stacktrace quite randomly.
May 25, 2002 12:48:44 PM CEST> <Error> <HTTP> <[WebAppServletContext(1666581,DefaultWebApp,/DefaultWebApp)]
Servlet failed with Exception
java.lang.OutOfMemoryError
<<no stack trace available>>
any comments would be highly appreciated.
thanx in advance
cheers
Amjad--
Michael Young
Developer Relations Engineer
BEA SupportI have been monitoring the heap from the console and when i see outofmemoryerror, used memory is nowhere close to the available memory.
Gurbir -
OracleXML - java.lang.OutOfMemoryError
Hi,
I want use OracleXML for upload/download a data in database,
but I have a very big memory use :
java -Xms64m -Xmx128m OracleXML getXML -user "userXML/userXML" "select * from USER_LINK
Exception in thread "main" java.lang.OutOfMemoryError
<<no stack trace available>>
this OK with :
-Xms128m -Xmx256m
1. Are you now if memory use is function to SQL or number off rows ?
2. With this Big consumption ?
3. Which is the limit or good use
G.I used XSU's command line interface with folloeing code:
export ORACLE_HOME=/sys2/oracle/product/8.1.7
export LIBPATH=$ORACLE_HOME/lib:
export CLASSPATH=$ORACLE_HOME/rdbms/jlib/xsu12.jar:$ORACLE_HOME/lib/xmlparserv2.
jar:$ORACLE_HOME/jdbc/lib/classes12.zip
java OracleXML getXML -DateFormat 'dd-MMM-yyyy' -withDTD -rowsetTag PO -conn
"jdbc:oracle:oci8:@server_name" -user "userID/password" "select * from table_name" >file_name
It works only when the selected data is small and fails when the file is large, said above 30 MB, with Outof memoryError message.
I tried to use similar command in your answer to Guillaume Moulard's question:
java oracle.xml.sql.query.OracleXMLQuery.getXMLSAX -DateFormat 'dd-MMM-yyyy' -withDTD -rowsetTag PO -conn
"jdbc:oracle:oci8:@server_name" -user "userID/password" "select * from table_name" >file_name
but got an error message "Can't find class oracle.xml.sql.query.OracleXMLQuery.getXMLSAX".
Could you please help me to find out the problem and solution?
Thank you.
Yiguang Zhong -
Hi,
Does anyone out there recognize it and know what to do with it ?
Pt maj 18 14:45:32 GMT+02:00 2001:<E> <ServletContextManager> Servlet
request terminiated with RuntimeException
java.lang.NullPointerException
<<no stack trace available>>
It happens every time we overload BEA WebLogic Server 5.1.0 + Service
Pack 8 on HP-UX 11.0 with JDK 1.2.2.07. It means that as we start
running 10 or more concurrent users (using web stres tool) the error
shows up.
Jacek LaskowskiPossibly running out of file descriptors.
Mike
Jacek Laskowski <[email protected]> wrote:
Hi,
Does anyone out there recognize it and know what to do with it ?
Pt maj 18 14:45:32 GMT+02:00 2001:<E> <ServletContextManager> Servlet
request terminiated with RuntimeException
java.lang.NullPointerException
<<no stack trace available>>
It happens every time we overload BEA WebLogic Server 5.1.0 + Service
Pack 8 on HP-UX 11.0 with JDK 1.2.2.07. It means that as we start
running 10 or more concurrent users (using web stres tool) the error
shows up.
Jacek Laskowski -
Java.lang.OutOfMemoryError in UCM
hi all,
We are getting the following error in Oracle UCM since last night:
Event generated by user 'weblogic' at host 'CIS'. System code execution error. java.lang.OutOfMemoryError: getNewTla. [ Details ]
An error has occurred. The stack trace below shows more information.
!csUserEventMessage,weblogic,CIS!csSystemCodeExecutionError!syJavaExceptionWrapper,java.lang.OutOfMemoryError: getNewTla
intradoc.common.ServiceException:
at intradoc.server.ServiceManager.onError(ServiceManager.java:703)
at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:303)
at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.OutOfMemoryError: getNewTla
at java.nio.CharBuffer.wrap(CharBuffer.java:133)
at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:246)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:106)
at java.io.OutputStreamWriter.write(OutputStreamWriter.java:190)
at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:111)
at java.io.PrintStream.newLine(PrintStream.java:495)
at java.io.PrintStream.println(PrintStream.java:774)
at java.lang.Throwable.printStackTrace(Throwable.java:461)
at java.lang.Throwable.printStackTrace(Throwable.java:451)
at intradoc.common.DefaultReportDelegator.message(DefaultReportDelegator.java:160)
at intradoc.common.Report.messageInternal(Report.java:170)
at intradoc.common.Report.message(Report.java:145)
at intradoc.common.Report.error(Report.java:397)
at intradoc.server.ServiceRequestImplementor.logErrorWithHostInfo(ServiceRequestImplementor.java:1850)
at intradoc.server.Service.logErrorWithHostInfo(Service.java:2151)
at intradoc.server.Service.logFileRequestError(Service.java:2276)
at intradoc.server.FileService.logError(FileService.java:1625)
at intradoc.server.ServiceRequestImplementor.reportError(ServiceRequestImplementor.java:1806)
at intradoc.server.ServiceRequestImplementor.handleErrorResponse(ServiceRequestImplementor.java:1762)
at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:816)
at intradoc.server.Service.doRequest(Service.java:1865)
at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)
at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
... 4 more
This is happening too many times. We are able to start the server and it is up for sometime and then it gives the mentioned error. This is urgent. Please help.
Thanks and Regards,
NithyaHi ,
Please find the details below:
1. What version of UCM server is this issue seen ?
UCM 11g
2. What specific action is when the out of memory shows up ? As in is it during checking in , searching etc .
Portal uses RIDC API to get data files from UCM. So this happens while fetching data files.
3. What are the Java memory arguments provided to the system or is it running the default settings ?
The machine we are running Oracle UCM on is 4 GB and it has no other applcation running on it.
Please find below the memory details provided in the setDomainenv file:
set XMS_SUN_64BIT=1024
set XMS_SUN_32BIT=1024
set XMX_SUN_64BIT=1024
set XMX_SUN_32BIT=1024
set XMS_JROCKIT_64BIT=1024
set XMS_JROCKIT_32BIT=1024
set XMX_JROCKIT_64BIT=1024
set XMX_JROCKIT_32BIT=1024
if "%JAVA_VENDOR%"=="Sun" (
set WLS_MEM_ARGS_64BIT=-Xms256m -Xmx512m
set WLS_MEM_ARGS_32BIT=-Xms512m -Xmx512m
) else (
set WLS_MEM_ARGS_64BIT=-Xms512m -Xmx512m
set WLS_MEM_ARGS_32BIT=-Xms512m -Xmx512m
if "%JAVA_VENDOR%"=="Oracle" (
set CUSTOM_MEM_ARGS_64BIT=-Xms%XMS_JROCKIT_64BIT%m -Xmx%XMX_JROCKIT_64BIT%m
set CUSTOM_MEM_ARGS_32BIT=-Xms%XMS_JROCKIT_32BIT%m -Xmx%XMX_JROCKIT_32BIT%m
) else (
set CUSTOM_MEM_ARGS_64BIT=-Xms%XMS_SUN_64BIT%m -Xmx%XMX_SUN_64BIT%m
set CUSTOM_MEM_ARGS_32BIT=-Xms%XMS_SUN_32BIT%m -Xmx%XMX_SUN_32BIT%m
Please advice.
Thanks
Nithya -
Java.lang.OutOfMemoryError
Hi all, can anybody help me?
I am getting in production environment the error below. We have jboss 4.0.4 in virtual machine and 2 tomcat (apache-tomcat-5.5.17) servers in 2 different virtual machines. Between we have load balance also to send the request in 2 tomcats.
Jboss is running in \jrockit-R27.3.1-jdk1.5.0_11 and tomcat 1 in \jrockit-R27.3.1-jdk1.5.0_11 and the other in \jrockit-R27.3.5-jdk1.5.0_14. Jboss deployment is build in jre6 and tomcat deployment (*.war files) in jdk 1.6.0_22. We have the same environment for test. In test env everything works fine and we did also stress test
for 50 users and works fine. When we go live we are getting the error bellow, many times and in many screens. I couldn't find any pattern or something similar. Every time is different when tomcat communicated with jboss and also in both tomcats I am getting the same. The out of memory error it is throwing in tomcat. Jboss works fine.
The strange think is that in the old version of production is working fine, and we did not make a lot of changes. The only thing is that in old version the deployment of the jboss is build in jdk 1.5.0_18 but now it is in jre6. Could someone give me a solution of that? I am thinking that the problwm maybe is that jboss deployment it is in jre6 and jboss is running with jrockit.
Both tomcat java options:
JAVA_OPT: -server -Xms1024m -Xmx1024m -XX:MaxPermSize=128m -Dsun.rmi.dgc.client.gcInterval=1800000 -Dsun.rmi.dgc.server.gcInterval=1800000 -Djava.security.auth.login.config=C:\apache-tomcat-5.5.17\conf\login.conf
Error 1:
2013-01-22 12:54:38,052 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[nettutor].[Faces Servlet]] (TP-Processor619:) Servlet.service() for servlet Faces Servlet threw exception
java.lang.OutOfMemoryError: mmAllocObject - Object size: 80
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
at java.lang.Class.getDeclaredMethod(Class.java:1907)
at java.io.ObjectStreamClass.getInheritableMethod(ObjectStreamClass.java:1321)
at java.io.ObjectStreamClass.access$2200(ObjectStreamClass.java:52)
at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:432)
at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:400)
at java.io.ObjectStreamClass.lookup0(ObjectStreamClass.java:297)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1035)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:258)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at cy.com.net.util.ServiceLocatorNew.lookupRemote(ServiceLocatorNew.java:75)
at cy.com.net.nettutor.client.nettutorClient.init(nettutorClient.java:52)
at cy.com.net.nettutor.client.nettutorClient.invoke(nettutorClient.java:62)
at cy.com.net.nettutor.RequestBean.invoke(RequestBean.java:175)
at cy.com.net.nettutor.LoginPage.load(LoginPage.java:439)
at cy.com.net.nettutor.LoginPage.prerender(LoginPage.java:415)
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.prerender(ViewHandlerImpl.java:815)
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:303)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
Error 2:
javax.faces.FacesException: #{ReportSavePage.btnSaveReport_action}: javax.faces.el.EvaluationException: java.lang.OutOfMemoryError: allocLargeObjectOrArray - Object size: 8208, Num elements: 8192
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
at cy.com.net.faces.webapp.CustomActionListener.processAction(CustomActionListener.java:34)
at javax.faces.component.UICommand.broadcast(UICommand.java:332)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at cy.com.net.servlet.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:84)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:198)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at cy.com.net.servlet.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:84)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at cy.com.net.servlet.filter.UrlSessionFilter.doFilter(UrlSessionFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.faces.el.EvaluationException: java.lang.OutOfMemoryError: allocLargeObjectOrArray - Object size: 8208, Num elements: 8192
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
... 38 more
Caused by: java.lang.OutOfMemoryError: allocLargeObjectOrArray - Object size: 8208, Num elements: 8192
at java.io.BufferedInputStream.<init>(BufferedInputStream.java:178)
at java.io.BufferedInputStream.<init>(BufferedInputStream.java:158)
Error 3:
2013-01-18 11:26:16,300 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[nettutor]] (TP-Processor667:) An unknown error occured. allocLargeObjectOrArray - Object size: 263952, Num elements: 263936
javax.faces.FacesException: #{paymentConfirmPage.confirmBtn_action}: javax.faces.el.EvaluationException: java.lang.OutOfMemoryError: allocLargeObjectOrArray - Object size: 263952, Num elements: 263936
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
at cy.com.net.faces.webapp.CustomActionListener.processAction(CustomActionListener.java:34)
at javax.faces.component.UICommand.broadcast(UICommand.java:332)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at cy.com.net.servlet.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:84)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:198)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at cy.com.net.servlet.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:84)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at cy.com.net.servlet.filter.UrlSessionFilter.doFilter(UrlSessionFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.faces.el.EvaluationException: java.lang.OutOfMemoryError: allocLargeObjectOrArray - Object size: 263952, Num elements: 263936
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
... 38 more
Caused by: java.lang.OutOfMemoryError: allocLargeObjectOrArray - Object size: 263952, Num elements: 263936
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95)
at java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java)
at java.rmi.MarshalledObject$MarshalledObjectOutputStream.writeLocation(MarshalledObject.java:242)
at sun.rmi.server.MarshalOutputStream.annotateClass(MarshalOutputStream.java:76)
at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1591)
at java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1175)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at java.util.HashMap.writeObject(HashMap.java:2316)
error 4:
2012-10-19 12:41:46,020 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[nettutor].[Faces Servlet]] (TP-Processor66699:) Servlet.service() for servlet Faces Servlet threw exception
java.lang.OutOfMemoryError: create_interned
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
at java.lang.Class.getDeclaredMethod(Class.java:1907)
at java.io.ObjectStreamClass.getPrivateMethod(ObjectStreamClass.java:1354)
at java.io.ObjectStreamClass.access$1700(ObjectStreamClass.java:52)
at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:421)
at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:400)
at java.io.ObjectStreamClass.lookup0(ObjectStreamClass.java:297)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java)
at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:396)
at java.io.ObjectStreamClass.lookup0(ObjectStreamClass.java:297)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java)
at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:396)
at java.io.ObjectStreamClass.lookup0(ObjectStreamClass.java:297)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1035)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at javax.naming.CompoundName.writeObject(CompoundName.java:541)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:258)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
2012-10-19 12:41:46,020 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[nettutor].[jsp]] (TP-Processor66699:) Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError: create_interned
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
at java.lang.Class.getDeclaredMethod(Class.java:1907)
at java.io.ObjectStreamClass.getPrivateMethod(ObjectStreamClass.java:1354)
at java.io.ObjectStreamClass.access$1700(ObjectStreamClass.java:52)
at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:421)
at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:400)
at java.io.ObjectStreamClass.lookup0(ObjectStreamClass.java:297)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java)
at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:396)
at java.io.ObjectStreamClass.lookup0(ObjectStreamClass.java:297)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java)
at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:396)
at java.io.ObjectStreamClass.lookup0(ObjectStreamClass.java:297)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1035)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at javax.naming.CompoundName.writeObject(CompoundName.java:541)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:258)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
2012-10-19 12:41:46,535 INFO [cy.com.net.servlet.listener.ManagedBeanListener] (Thread-1:) Context destroyed
2012-10-19 12:41:46,613 INFO [org.quartz.core.QuartzScheduler] (Thread-1:) Scheduler QuartzScheduler_$_1 shutting down.
2012-10-19 12:41:46,613 INFO [org.quartz.core.QuartzScheduler] (Thread-1:) Scheduler QuartzScheduler_$_1 paused.
2012-10-19 12:41:46,629 INFO [org.quartz.core.QuartzScheduler] (Thread-1:) Scheduler QuartzScheduler_$_1 shutdown complete.
2012-10-19 12:41:46,629 INFO [org.quartz.ee.servlet.QuartzInitializerListener] (Thread-1:) Quartz Scheduler successful shutdown.
2012-10-19 12:41:46,629 INFO [cy.com.net.servlet.listener.ConfigurationListener] (Thread-1:) Context destroyed
2012-10-19 12:41:49,910 WARN [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[nettutor]] (Thread-1:) Cannot serialize session attribute SessionBean for session 60E3E7E99C3858B503AA138DA31B2E45
java.io.NotSerializableException: java.util.PropertyResourceBundle
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1462)
at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:938)
at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:516)
at org.apache.catalina.session.StandardManager.unload(StandardManager.java:462)
at org.apache.catalina.session.StandardManager.stop(StandardManager.java:666)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4345)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892)
at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1164)
at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1135)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1054)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1066)
at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447)
at org.apache.catalina.core.StandardService.stop(StandardService.java:512)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:743)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:601)
at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
2012-10-19 12:41:54,223 ERROR [org.apache.catalina.session.ManagerBase] (Thread-1:) Exception unloading sessions to persistent storage
java.lang.OutOfMemoryError
2012-10-19 12:45:03,020 ERROR [org.apache.catalina.session.ManagerBase] (Thread-1:) IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: java.util.PropertyResourceBundle
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: java.util.PropertyResourceBundle
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1309)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1386)
at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:921)
at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:393)
at org.apache.catalina.session.StandardManager.load(StandardManager.java:320)
at org.apache.catalina.session.StandardManager.start(StandardManager.java:636)
at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:431)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4131)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: java.io.NotSerializableException: java.util.PropertyResourceBundle
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1462)
at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:938)Hi again,
This is the situation:
We have virtual machine in jrockitR27 for jboss 4.04 and 2 virtual machines for tomcat 5.5.17 clustering. The deployment in jboss was compile in java 1.5 using jdk1.5.0_18 and tomcat compile in java 1.5 using jdk1.6. This version is working fine.
After some changes in the code and many test in UAT environment(which is the same with production) and also after stress test, we went live but we got OutOfMemoryError. The only different in the new version is that we had some changes in the code and we compile in java 1.5 using jre6 for jboss and for tomcat compile in java 1.5 using jdk1.6. The outOfMemoryError is throwing in communication of jboss and tomcat. When jboss send hasmap object to tomcat, then tomcat throws outOfMemoryError allocLargeObjectOrArray.
The only different is that new version compile in java 1.5 using jre6. Is there is a problem for that? So tomcat throws outOfMemoryError allocLargeObjectOrArray. I cannot replicate the error in UAT. But I cannot go live just to test again that it is going to work if I make the build in java 1.5 using jdk 1.5. What else information do you want?
Do you have experience in jrockitR27 and outOfMemoryError and compatibility issues?
If I make again the deployment using jdk1.5 it will work?
Maybe you are looking for
-
I am unable to activate the sim in my ipad air 5th generation can you suggest how i can activate
i brought ipad air cellular model and inserted nano sim card but i am unable to dial number because there is no display of numarical pad to dial. But on left side i am getting the netwaork name DU with 5round ponits. Can you suggest it is required an
-
ABAP program to search for FM/User-Exit lookups
Hi everyone, I have a need to find any and all Function Modules and User Exits that may have been written in BW that are used to do a lookup of data from one InfoProvider to another. I have found the following program from Lijo John which works for
-
an error occurred during the installation of assemble microsoft.vc80.crt,type=''win32'',version=''8,0.50727,4053'',publickey token=''1fc8b9a1e18e3b'',process or architecture=''amd64''.please refer to help and support for more information,hresult:0x80
-
Creating more than one database user in oracle cloud
I hv created an adf application, in which there are 4 models. each model is connected to different database user, where SID is same for all user. These users have some number of tables, which are used as entity and view in model project in adf applic
-
Just bought a new MacBook Pro 15" 2.2 GHz i7 16GB DDR3 OS X 10.10 I was using Aperture to keep my photos... And using a WD USB external drive to store the library... Today I tried to open the library with the MBP... Aperture started and processing...