[JBoss-user] [Messaging, JMS & JBossMQ] - JMS on 3.24RC2 problem
Is this a known issue? Starting default configuration out of the box I see this exception: | | 2004-05-24 08:17:25,904 DEBUG [org.jboss.system.ServiceController] starting service jboss.mq:service=SecurityManager | 2004-05-24 08:17:25,904 DEBUG [org.jboss.mq.security.SecurityManager] Starting jboss.mq:service=SecurityManager | 2004-05-24 08:17:25,925 DEBUG [org.jboss.mq.security.SecurityManager] Failed to lookup securityDomain=jbossmq | javax.naming.NameNotFoundException: jbossmq not bound | at org.jnp.server.NamingServer.getBinding(NamingServer.java:495) | at org.jnp.server.NamingServer.getBinding(NamingServer.java:503) | at org.jnp.server.NamingServer.getObject(NamingServer.java:509) | at org.jnp.server.NamingServer.lookup(NamingServer.java:282) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507) | at javax.naming.InitialContext.lookup(InitialContext.java:347) | at org.jboss.mq.security.SecurityManager.startService(SecurityManager.java:162) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:324) | at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:186) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:466) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837) | at $Proxy16.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:367) | at org.jboss.system.ServiceController.start(ServiceController.java:389) | at org.jboss.system.ServiceController.start(ServiceController.java:389) | at org.jboss.system.ServiceController.start(ServiceController.java:389) | at org.jboss.system.ServiceController.start(ServiceController.java:389) | at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) | | ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836071#3836071 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836071 --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Restarting JMS
"StephaneNicoll" wrote : Why not searching the origin of the deadlock in a first place? | I am looking into it. But this is a production system that needs to be up all the time. Restarting JBoss is bit drastic, as it kicks all users off and makes our app UI unavailable for a while. Restarting JMS only would be cleaner way to work around this problem until I get a handle on why it occurs. ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835679#3835679 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835679 --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Restarting JMS
Is it possible to restart JMS without restarting the JBoss server? I'm using JBoss 3.2.3 and in some cases we run into a problem with JMS deadlocking. Restarting JBoss server fixes the problem, but I'd like to be able to just stop and restart JMS. TIA ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835671#3835671 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835671 --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JBoss on Solaris leaves threads hanging
Here is the resolution of this issue. It turns out that we hit some weird networking/Solaris problem between two specific Solaris machines. What happens is that when the client on one machine disconnects from the server (running on the other machine), Solaris does not cleanup the sockets. As far as JBoss is concerned the sockets are still open. Furthermore, this condition seems to break the SO_TIMEOUT setting. Even though timeout is set on the read, the read never times out. I was able to reproduce this behavior with a simple program that just does simple socket connections and transmits some data. Clearly this is not a JBoss problem but Solaris/network issue. Thanks for all the pointers! ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829517#3829517 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829517 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JBoss on Solaris leaves threads hanging
"[EMAIL PROTECTED]" wrote : What is the netstat status of these connections, connected? Perhaps the tcp_keepalive_interval is too high, or not all OS patches for java have been installed. Ah! Thanks for the suggestion. Seems that the tcp_keepalive_interval is set to the default value of 120 minutes (!!!). Doing netstat after reproducing the problem I see that the connection is still active. Even after the clients have been killed. ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829435#3829435 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829435 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JBoss on Solaris leaves threads hanging
One thing I noticed that when the connections start going bad this is what the thread dump of the ReaderTask looks like. | "UIL2.SocketManager.ReadTask#11" daemon prio=5 tid=0x00cfade8 nid=0x72 runnable [ae58..ae5819c0] | at java.net.SocketInputStream.socketRead0(Native Method) | at java.net.SocketInputStream.read(SocketInputStream.java:129) | at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) | at java.io.BufferedInputStream.read1(BufferedInputStream.java:222) | at java.io.BufferedInputStream.read(BufferedInputStream.java:277) | - locked <0xcb846e28> (a org.jboss.util.stream.NotifyingBufferedInputStream) | at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:77) | at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2150) | at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2370) | at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2539) | at java.io.ObjectInputStream$BlockDataInputStream.readFully(ObjectInputStream.java:2579) | at java.io.ObjectInputStream.readFully(ObjectInputStream.java:944) | at org.jboss.mq.SpyObjectMessage.readExternal(SpyObjectMessage.java:154) | at org.jboss.mq.SpyMessage.readMessage(SpyMessage.java:726) | at org.jboss.mq.ReceiveRequest.readExternal(ReceiveRequest.java:35) | at org.jboss.mq.il.uil2.msgs.ReceiveRequestMsg.read(ReceiveRequestMsg.java:55) | at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:304) | at java.lang.Thread.run(Thread.java:534) | Normally these threads sit in "readByte" routine... ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829310#3829310 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829310 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JBoss on Solaris leaves threads hanging
I have ReadTimeout set and it seems to work sometimes. The problem seems to occur when I run clients over wide area network, which has many delays and occasional errors. Doing a simple kill -9 on a client seems to terminate everything properly. It's when network hits occur that things can get messed up. What can I trace to get some more info about what's going on? Thanks! ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829303#3829303 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829303 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - JBoss on Solaris leaves threads hanging
We are testing with JBoss on Solaris and we observe the following situation. If the client process is killed, the topic subscriptions are not getting cleaned up and others who publish on this topic fill up the queues. Looking at the thread listing in jmx-console we see several Read tasks that are stuck in socket read and never time out: | | Thread: OIL Worker Server : priority:5, demon:false | Thread: OIL2 Worker Server : priority:5, demon:false | Thread: UILServerILService Accept Thread : priority:5, demon:false | Thread: Message Pushers-1 : priority:5, demon:true | Thread: Message Pushers-2 : priority:5, demon:true | Thread: UIL2.SocketManager.ReadTask#5 : priority:5, demon:true | Thread: UIL2.SocketManager.WriteTask#6 : priority:5, demon:true | Thread: Message Pushers-3 : priority:5, demon:true | Thread: Message Pushers-4 : priority:5, demon:true | Thread: Message Pushers-5 : priority:5, demon:true | Thread: Message Pushers-6 : priority:5, demon:true | Thread: UIL2.SocketManager.ReadTask#7 : priority:5, demon:true | Thread: UIL2.SocketManager.WriteTask#8 : priority:5, demon:true | How can I make sure these connections are cleaned up? I cannot depent on the client, since the client is running over an unreliable network and sometimes looses the connection entirely. I tried to enable ClientMonitorInterceptor but that doesn't do anything. This is Jboss 3.2.3 and Soloris 5.8. Clients run on Windows and Linux. BTW, this problem does not occur when the server is running on Linux. If the client is killed, the subscriptions are immediately cleaned up. Any suggestions greatly appreaciated. ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829292#3829292 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829292 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: where the jbossMQ is?
"zhebincong" wrote : hello | i am new to jbossMQ,i have download the jboss322,i wonder if the mq is included?and how can i config a queue?which config file should i modify? | | thank you. It's included. Take a look in $JBOSS_HOME/server/default/deploy/jms. You can add queues by modifying files on the jms despoy dir above, or through the JMX web-console, using jboss.mq->DestinationManager MBean. HIH ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828891#3828891 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828891 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How to recover from failed connection
"[EMAIL PROTECTED]" wrote : Closing the connection will close the session. | | Your fundamental problem is that the server is not responding to your requests. | The connection isn't broken, the server just isn't responding in time. | Have a look at what the server is doing. | We have an unreliable network connection (client is on the other side of the world :) ). That's why the server does not respond. While the JMS connection in the "half-dead" state the client can do wrong things. We'd like to drop the connection and try reconnecting from scratch. I'll try just closing the connection and see what happens. Will report the result. Thanks! ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828570#3828570 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828570 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How to recover from failed connection
Here is more detail on how things look when the problem occurs. First we get an exception saying that "Ping Timed Out". When we try to shutdown the JMS connection the threads hang. Here is relevant thread dump: "UIL2.SocketManager.WriteTask#142" daemon prio=1 tid=0x082268b0 nid=0x75d5 in Object.wait() [4da52000..4da528c8] | at java.lang.Object.wait(Native Method) | at java.lang.Object.wait(Object.java:429) | at EDU.oswego.cs.dl.util.concurrent.LinkedQueue.take(LinkedQueue.java:122) | - locked <0x44d7ba30> (a java.lang.Object) | at org.jboss.mq.il.uil2.SocketManager$WriteTask.run(SocketManager.java:473) | at java.lang.Thread.run(Thread.java:534) | | "UIL2.SocketManager.ReadTask#141" daemon prio=1 tid=0x082266b0 nid=0x75d4 runnable [4d9d1000..4d9d18c8] | at java.net.SocketInputStream.socketRead0(Native Method) | at java.net.SocketInputStream.read(SocketInputStream.java:129) | at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) | at java.io.BufferedInputStream.read(BufferedInputStream.java:201) | - locked <0x44d7bfa8> (a org.jboss.util.stream.NotifyingBufferedInputStream) | at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:67) | at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133) | at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2313) | at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2380) | at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2452) | at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2601) | at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845) | at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:278) | at java.lang.Thread.run(Thread.java:534) | | "Heartbeater" prio=1 tid=0x08247268 nid=0x6e5f in Object.wait() [4d7cd000..4d7cd8c8] | at java.lang.Object.wait(Native Method) | - waiting on <0x4475ca20> (a org.jboss.mq.il.uil2.msgs.UnsubscribeMsg) | at java.lang.Object.wait(Object.java:429) | at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:240) | - locked <0x4475ca20> (a org.jboss.mq.il.uil2.msgs.UnsubscribeMsg) | at org.jboss.mq.il.uil2.SocketManager.sendMessage(SocketManager.java:189) | at org.jboss.mq.il.uil2.UILServerIL.unsubscribe(UILServerIL.java:493) | at org.jboss.mq.Connection.removeConsumer(Connection.java:1198) | at org.jboss.mq.SpySession.removeConsumer(SpySession.java:766) | at org.jboss.mq.SpyMessageConsumer.close(SpyMessageConsumer.java:411) | at com.javtech.myapp.jms.JMSInterface.a(myappAgent:330) | - locked <0x489daa00> (a java.lang.Class) | at com.javtech.myapp.jms.JMSInterface.a(myappAgent:262) | - locked <0x489daa00> (a java.lang.Class) | at com.javtech.myapp.jms.JMSInterface.a(myappAgent:155) | at com.javtech.myapp.jms.JMSInterface.publish(myappAgent:582) | at com.javtech.myapp.agent.e.b(myappAgent:95) | at com.javtech.myapp.agent.e.run(myappAgent:72) | at java.lang.Thread.run(Thread.java:534) | | | The Heartbeater thread tries to do "session.close()" and this just sits there. The socket read in ReadTask doesn't seem to time out. Should I skip the session.close() in this case and just do connection.close()? ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828545#3828545 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828545 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How to recover from failed connection
"[EMAIL PROTECTED]" wrote : Close the session/connection in a background thread so you can resume. What is the problem with the TTL approach in more detail? See bug 890030. There is a thread created for each subscription that uses TTL messages and the thread never exits. The problem with closing the connection in another thread that we saw, was that the "session.close()" call never completed and there seemed to be no timeout for sending the unsubscribe message. ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828480#3828480 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828480 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - How to recover from failed connection
We have a client that uses UIL2 IL layer. When there is a connection error (Ping Timeout in our case), the client tries to close the session and reconnect. However, due to network problems the close hangs (as session.close() tries to send unsubscribed message). As a result we get subscriptions with dead listeners and messages pile up in the server. What is the proper way to close a connection after a network error, so that the server will clean up? BTW, we are using Jboss 3.2.3. We cannot use TTL on our messages because of TTL bugs in 3.2.3 (too many threads get created). Any suggestions would be greatly appreciated... richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828461#3828461 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828461 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Question about "onException" callback
If I'm using JVM IL, will there ever be a case when the "onException" handler (registered with Connection) is invoked? ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828091#3828091 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828091 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Platform dependent problem with JBossMQ
Are you running some firewall software on the Windows machines? ...richie http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827426#3827426";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827426>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JMS hang/crash (Jboss 3.2.3)
I forgot to add that when I tried to shut Jboss down with shutdown.sh script it did not work. The script timed out. ..richie http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826235#3826235";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826235>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - JMS hang/crash (Jboss 3.2.3)
We had a JMS crash/hang occur in our development JBoss 3.2.3. An OutOfMemory error occured first, and then the clients got into a weird state. Some clients got stuck while trying to reconnect to Jboss in InitialContext look up. We had a program that was monitoring topic message counts and it started to report problems few minutes before. Here is first incation of problem in the log: 2004-03-17 10:29:01,635 ERROR [org.jboss.mq.il.uil2.SocketManager] Failed to handle: org.jboss.mq.il.uil2.msgs.AddMsg791646028[msgTy pe: m_addMessage, msgID: 430942, error: null] java.lang.OutOfMemoryError 2004-03-17 10:29:01,635 ERROR [org.jboss.mq.il.uil2.SocketManager] Failed to handle: org.jboss.mq.il.uil2.msgs.AddMsg274059084[msgTy pe: m_addMessage, msgID: 1163451, error: null] java.io.IOException: Client is not connected at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java(Compiled Code)) at org.jboss.mq.il.uil2.SocketManager.sendReply(SocketManager.java(Inlined Compiled Code)) at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java(Compiled Code)) at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java(Compiled Code)) at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java(Compiled Code)) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java(Compiled Code)) at java.lang.Thread.run(Thread.java:568) 2004-03-17 10:45:19,321 WARN [com.javtech.tradescope] JMS service not reachable ... will try again in a few seconds 2004-03-17 10:42:25,503 ERROR [org.apache.tomcat.util.net.PoolTcpEndpoint] Endpoint ServerSocket[addr=/0.0.0.0,port=0,localport=8081 ] ignored exception: java.net.SocketException: Connection reset by peer And then we see lots of these: 2004-03-17 11:10:34,387 ERROR [STDERR] java.lang.OutOfMemoryError: 2004-03-17 11:10:34,387 ERROR [STDERR] at sun.reflect.ByteVectorImpl.trim(ByteVectorImpl.java:68) 2004-03-17 11:10:34,387 ERROR [STDERR] at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:386) 2004-03-17 11:10:34,387 ERROR [STDERR] at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenera tor.java:111) 2004-03-17 11:10:34,387 ERROR [STDERR] at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:317) 2004-03-17 11:10:34,387 ERROR [STDERR] at java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java(Compiled Code )) 2004-03-17 11:10:34,388 ERROR [STDERR] at java.io.ObjectStreamClass.access$1100(ObjectStreamClass.java:72) 2004-03-17 11:10:34,388 ERROR [STDERR] at java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:399) 2004-03-17 11:10:34,388 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method) 2004-03-17 11:10:34,388 ERROR [STDERR] at java.io.ObjectStreamClass.(ObjectStreamClass.java(Compiled Code)) 2004-03-17 11:10:34,388 ERROR [STDERR] at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java(Compiled Code)) 2004-03-17 11:10:34,388 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java(Compiled Code)) 2004-03-17 11:10:34,388 ERROR [STDERR] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java(Inlined Compiled Co de)) 2004-03-17 11:10:34,388 ERROR [STDERR] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java(Compiled Code)) 2004-03-17 11:10:34,388 ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java(Compiled Code)) 2004-03-17 11:10:34,388 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java(Compiled Code)) 2004-03-17 11:10:34,388 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java(Compiled Code)) 2004-03-17 11:10:34,389 ERROR [STDERR] at org.jnp.server.Main.run(Main.java:306) 2004-03-17 11:10:34,389 ERROR [STDERR] at java.lang.Thread.run(Thread.java(Compiled Code)) 2004-03-17 11:10:34,389 ERROR [STDERR] java.lang.OutOfMemoryError: I took thread dump while the server was in this state. It was from IBM's JVM running on Linux. Please let me know where to post it. ...richie http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826234#3826234";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826234>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: topic consumer does not recieve messages when jboss and
"cuonglam" wrote : I am running jboss 3.2.3 on a linux box. I have 2 programs: | | I would like to know if anyone has managed to send messages from linux and receive from windows. I can send people source that reproduces the problem We have no problems doing this. Are you using the same version of JVM on both machines? Any exceptions in server.log? ...richie http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3824720#3824720";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3824720>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Identifying a stuck subscriber
"[EMAIL PROTECTED]" wrote : Enable trace logging on the client, see what error you get. | | Regards, | Adrian Unfortunately, this only seems to occur on production machines and I cannot enable trace there. :( What we did though, was to implement a simple timer inside the client. Then if we find that the client executes for too long, we kill the client. We also log data, so hopefully this will catch the problem and give us enough info to really solve it. ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823589#3823589 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823589 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: OutOfMemoryError
"Jochen" wrote : Hi! | | We have a problem with the following scenario: when the client has sent a message to the server, he gets a message in response. We have the problem that when the client sends a lot of messages in a very short period of time and in consequence the server vice versa, the server throws the following error: | | 16:51:43,467 ERROR [STDERR] java.lang.OutOfMemoryError: unable to create new native thread | 16:51:43,469 ERROR [STDERR] at java.lang.Thread.start(Native Method) | 16:51:43,469 ERROR [STDERR] at org.jboss.mq.il.uil.UILServerILService.run(UILServerILService.java:198) | 16:51:43,469 ERROR [STDERR] at java.lang.Thread.run(Thread.java:534) | | Which version of JBoss are you using? There is a thread leak in 3.2.3, if you are using JMS messages with "message expiration" (TTL) and are resubscribing a lot of times. For each subscription a thread will be created and never stopped. Did you look at the queue in jmx-console, so see how many messages were pending? HIH ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823334#3823334 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823334 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Identifying a stuck subscriber
(this is a repost with corrected subject line) We have a problem with one of our client programs that subscribes to a topic (this is a temp subscription). The thread that processes the subscribed messages gets "stuck". Initial effect was that a lot of messages queued up on the topic (in one case we had over 200,000). Now we set a maxDepth on the topic, so that everyone gets an exception when the topic reaches the maxDepth. The topic queue remains full, although other publishers and subscribers still seem to work. I'd like to be able to identify the "stuck" subscriber and kill it's connection. I'm not sure where to look though. Would enabling "ClientMonitorInterceptor" help? I expect messages from each client at least once a minute. Any suggestions will be greatly appreciated... ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823065#3823065 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823065 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - How to identify a
We have a problem with one of our client programs that subscribes to a topic (this is a temp subscription). The thread that processes the subscribed messages gets "stuck". Initial effect was that a lot of messages queued up on the topic (in one case we had over 200,000). Now we set a maxDepth on the topic, so that everyone gets an exception when the topic reaches the maxDepth. The topic queue remains full, although other publishers and subscribers still seem to work. I'd like to be able to identify the "stuck" subscriber and kill it's connection. I'm not sure where to look though. Would enabling "ClientMonitorInterceptor" help? I expect messages from each client at least once a minute. Any suggestions will be greatly appreciated... ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822990#3822990 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822990 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: SimpleTimer threads are growing
OK. I'll take a look... ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822603#3822603 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822603 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: SimpleTimer threads are growing
Ah, thanks. Are you looking for someone to implement this? :) ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822575#3822575 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822575 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - SimpleTimer threads are growing
I started setting TTL on the messages I publish to several topics. Now looking at the thread dump form the web-console, I see that the number of SimpleTimer threads is growing. At present there are about 155 of them. I have 7 topics with about 40 subscribers (non-durable). These values do not change. I do not use temp topics either. Any ideas why? ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822568#3822568 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822568 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JMS hangs after IOException in the server
I'm afraid I don't have a thread dump. This is a production system, so I only find out after a JBoss restart. ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822542#3822542 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822542 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JMS hangs after IOException in the server
Yes we have. Here are snippets of our code: tcf_ = (TopicConnectionFactory) context_.lookup(connectionFactory_); conn_ = tcf_.createTopicConnection (); conn_.setExceptionListener(new ExceptionListener() { public void onException(JMSException e) { if (!restarting_) JMSInterface.shutdownAndRestart(e); } }); In "shutdownAndRestart" we attempt to disconnect and reconnect to JMS. We log several messages - which I do not see in this case. Here are more snipets of the code: private static void shutdownAndRestart(Throwable t) { TSLogger.getMainLogger().debug("JMS Service Failure", t); restarted_ = false; synchronized (JMSInterface.class) { if (restarted_) return; restarting_ = true; for (;;) { TSLogger.getMainLogger().warn("JMS service not reachable ... will try again in a few seconds"); try { Thread.sleep (reconnectTimeout_); } catch (InterruptedException ie) {} ... etc We don not see the warning message. In a more typical operation, when we shut down JBoss we see the warnings logged by the clients. When JBoss is restarted the clients reconnect and continue. ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822534#3822534 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822534 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JMS hangs after IOException in the server
Here is a small extract from the server log: 2004-02-20 18:26:10,946 ERROR [org.jboss.mq.server.JMSDestinationManager] The connection to client ID :7 failed. 2004-02-20 18:26:10,948 ERROR [org.jboss.mq.il.uil2.SocketManager] Failed to handle: org.jboss.mq.il. uil2.msgs.AcknowledgementRequestMsg1649195744[msgType: m_acknowledge, msgID: 171372, error: null] java.io.IOException: Client is not connected at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:225) at org.jboss.mq.il.uil2.SocketManager.sendReply(SocketManager.java:208) at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java: 82) at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:355) at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:732) at java.lang.Thread.run(Thread.java:568) We see no exceptions on the client side. The client seems to be able to publish without errors, but does not see any new messages. I haven't been able to reproduce this problem with a small test case. ...richie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822521#3822521 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822521 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user