We have an unusual memory problem. I have to reduce JBoss's heap size to keep from running out of memory. We are running JBoss 3.2.5 on HPUX 11.11. We are using JBossMQ and the internal Tomcat. We have a series of standalone java apps that produce and consume messages in addition to other apps that use ejb's. JBossMQ is using an oracle 9i db for the datastore. The UNIX machine has 4GB of memory. The machine is dedicated to JBoss and 4 standalone java jms listener apps.
The failure scenario is as follows. App1, a standalone java app, gets information from a db table, sends the information to a servlet running in the internal tomcat which parses and packages the data and sends a jms message appropriate to the data. Some messages go to queue's others to topics with durable subscribers. App2 is a standalone java app that durably subscribes to various topics, filters messages, reformats selected messages and places the reformatted messages on a queue. App3 is a standalone java application that pulls some of App2's reformatted messages from the queue and applies business logic using ejb's. Under moderate load, several thousand messages pending, all standalone java apps processing messages, 4000 to 5000 messages processed in this run, we are receiving the following error 2004-09-14 13:33:04,131 DEBUG [org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory] The GenericConnectionFactory is: [EMAIL PROTECTED] connectionProperties={UIL_ADDRESS_KEY=10.101.1.10, UIL_CHUNKSIZE_KEY=1000000, UIL_TCPNODELAY_KEY=yes, ClientILService=org.jboss.mq.il.uil2.UILClientILService, UIL_PORT_KEY=8093, UIL_BUFFERSIZE_KEY=2048, PingPeriod=60000}] 2004-09-14 13:33:04,135 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin ReadTask.run 2004-09-14 13:33:04,137 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin WriteTask.run 2004-09-14 13:33:04,138 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created ObjectOutputStream 2004-09-14 13:33:04,138 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin ReadTask.run 2004-09-14 13:33:04,138 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin WriteTask.run 2004-09-14 13:33:04,138 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created ObjectInputStream 2004-09-14 13:33:04,138 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created ObjectOutputStream 2004-09-14 13:33:04,140 DEBUG [org.jboss.mq.il.uil2.SocketManager] Exiting on unexpected error in read task java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor.addThread(PooledExecutor.java:520) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor.execute(PooledExecutor.java:880) at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:296) at java.lang.Thread.run(Thread.java:534) 20 JBoss is configured with 1GB of memory. When the system fails, HP GLANCE reports 40% of physical memory free. JBoss reports 600 or so megs of free heapspace via the jboss web-console. There are 1300 - 2000 active threads in JBoss. It appears that JBoss threads are being created and free'ed smoothly, the memory and thread number constantly increase/decrease. The unix box is configured to allow 6000 threads per process. File handles etc are greater than 20,000. The failures seem to follow a spike in threads but it is not necessarily related to the thread high water mark. It does not get to 2000 threads and fail, it gets to 2000, drops back to 1300, spikes to 1500 and fails. The details are of course different for every failure. Paradoxically, if I reduce the JBoss heap to 384 megs the entire message run processes without error. The thread count is somewhat reduced and we dont seem to hit the wild fluctuations that seem to proceed a failure. I am not sure what forum to place this in. Any ideas will be greatly appreciated. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850965#3850965 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3850965 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user