• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

OutOfMemory Error

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

I am running tests using a client program that tests my schedule classes on the jBoss3.2.3 server. I am using Hibernate 3.0 to persists schedule classes information in the Teradata database. I am using JMS to publish messages that client program listens on. For sometime, the client works fine and suddenly jBoss throws the java.lang.OutOfMemory error and the stack trace is shown below:

2005-04-28 17:13:09,709 ERROR [STDERR] java.lang.OutOfMemoryError
2005-04-28 17:13:11,131 ERROR [STDERR] java.lang.OutOfMemoryError
2005-04-28 17:13:11,146 ERROR [STDERR] org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server; - nested throwable: (java.io.EOFException)
2005-04-28 17:13:11,146 ERROR [STDERR] at org.jboss.mq.Connection.sendToServer(Connection.java:1251)
2005-04-28 17:13:11,146 ERROR [STDERR] at org.jboss.mq.SpySession.sendMessage(SpySession.java:732)
2005-04-28 17:13:11,146 ERROR [STDERR] at org.jboss.mq.SpyQueueSender.internalSend(SpyQueueSender.java:118)
2005-04-28 17:13:11,146 ERROR [STDERR] at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:68)
2005-04-28 17:13:11,146 ERROR [STDERR] at com.teradata.tap.system.logging.QueueAccessor.write(QueueAccessor.java:111)
2005-04-28 17:13:11,146 ERROR [STDERR] at com.teradata.tap.system.logging.LogQueueAppender.append(LogQueueAppender.java:80)
2005-04-28 17:13:11,146 ERROR [STDERR] at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
2005-04-28 17:13:11,146 ERROR [STDERR] at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
2005-04-28 17:13:11,146 ERROR [STDERR] at org.apache.log4j.Category.callAppenders(Category.java:187)
2005-04-28 17:13:11,146 ERROR [STDERR] at org.apache.log4j.Category.forcedLog(Category.java:372)
2005-04-28 17:13:11,146 ERROR [STDERR] at org.apache.log4j.Category.info(Category.java:674)
2005-04-28 17:13:11,146 ERROR [STDERR] at com.teradata.tap.system.scheduler.JobExecutor.run(JobExecutor.java:55)
2005-04-28 17:13:11,146 ERROR [STDERR] at com.teradata.tap.system.pool.WorkerThread.run(WorkerThread.java:91)
2005-04-28 17:13:11,146 ERROR [STDERR] Caused by: java.io.EOFException
2005-04-28 17:13:11,146 ERROR [STDERR] at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2603)
2005-04-28 17:13:11,146 ERROR [STDERR] at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
2005-04-28 17:13:11,146 ERROR [STDERR] at org.jboss.mq.il.oil.OILServerIL.waitAnswer(OILServerIL.java:601)
2005-04-28 17:13:11,146 ERROR [STDERR] at org.jboss.mq.il.oil.OILServerIL.addMessage(OILServerIL.java:219)
2005-04-28 17:13:11,146 ERROR [STDERR] at org.jboss.mq.Connection.sendToServer(Connection.java:1243)
2005-04-28 17:13:11,146 ERROR [STDERR] ... 12 more

I have no clue about this error and why this error is coming. Can somebody please help me out from this exception situation.

Do I Need to increase the JVM heap size somewhere? (may be in the run.bat file?)

Advanced Thanks,
B. Krishna Menon.
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes you can change the heap size in run.bat file.

JAVA_OPTS= Xms***m -Xmx***m

or you can do it in the run.conf file.
[ May 05, 2005: Message edited by: Sanju Thomas ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic