users@glassfish.java.net

"Too many open files" problem

From: <glassfish_at_javadesktop.org>
Date: Fri, 04 May 2007 09:30:09 PDT

Hello,

after leaving the glassfish (9.1 (build b33e-beta)) running for a few hours it runs into "too many open files" problem. After that there is a mess.

I suspect it has something to do with JMS, because this is what I recently added. Every 60 seconds a timer generates a message into a queue, which is handled. I always close the producer, the session and the connection (when sending). Handling the message is currently doing nothing (or almost nothing, depending on configuration), but always succeeds.

What I find suspicious is that every few minutes there is a following trace, always twice (does it mean it generations new and new connections?):
[#|2007-05-03T23:32:54.107+0200|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=34;_ThreadName=Timer-4;_RequestID=a17dfebf-c2c
c-4850-a198-e22cfe7776ac;|
MQRA:MC:Warning:createConnection API used w/o username, password for Application Auth|#]

[#|2007-05-03T23:32:54.136+0200|INFO|sun-appserver9.1|javax.resourceadapter.mqjmsra.outbound.connection|_ThreadID=34;_ThreadName=Timer-4;|MQJMSRA_MC
1101: constructor:Created mcId=43:xacId=6560357433579922176:Using xacf config={imqDefaultUsername=guest, imqBrokerHostName=localhost, imqSetJMSXUser
ID=false, imqJMSExpiration=0, imqQueueBrowserRetrieveTimeout=60000, imqSSLProviderClassname=com.sun.net.ssl.internal.ssl.Provider, imqConfiguredClie
ntID=, imqSSLIsHostTrusted=false, imqSetJMSXProducerTXID=false, imqJMSDeliveryMode=PERSISTENT, imqAddressListBehavior=RANDOM, imqEnableSharedClientI
D=false, imqAckOnProduce=, imqConnectionURL=http://localhost/imq/tunnel, imqConnectionFlowLimit=1000, imqSetJMSXAppID=false, imqAddressListIteration
s=3, imqBrokerServicePort=0, imqSetJMSXRcvTimestamp=false, imqReconnectInterval=5000, imqConnectionType=TCP, imqLoadMaxToServerSession=true, imqSetJ
MSXConsumerTXID=false, imqAddressList=localhost:7676, imqOverrideJMSDeliveryMode=false, imqPingInterval=30, imqDefaultPassword=guest, imqAckOnAcknow
ledge=, imqJMSPriority=4, imqQueueBrowserMaxMessagesPerRetrieve=1000, imqOverrideJMSPriority=false, imqConsumerFlowLimit=1000, imqBrokerHostPort=767
6, imqReconnectEnabled=true, imqConnectionFlowCount=100, imqReconnectAttempts=3, imqConnectionFlowLimitEnabled=false, imqAckTimeout=0, imqBrokerServ
iceName=, imqOverrideJMSExpiration=false, imqConnectionHandler=com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler, imqDisableSetClientID=
false, imqOverrideJMSHeadersToTemporaryDestinations=false, imqConsumerFlowThreshold=50}|#]

Any ideas?

Thanks,
Edek
[Message sent by forum member 'edek234' (edek234)]

http://forums.java.net/jive/thread.jspa?messageID=215579