David -

Some things to look for:

- Does the program loop creating new sockets without releaseing the old ones?
- Are you releasing unused sockets?
- Is a thread hanging on a read or write?
- Are sockets getting closed properly?

I suspect that this is really a resources problem i.e. the process is running out of sockets. If you are opening and closing sockets a lot in the program, try reusing old sockets and not creating new ones for every open. That way the process only uses a limited number of sockets.

And why are you invoking rxfuncquery multiple times? It seems to me that you should only perform that function one time.

FYI, I have a new sockets class if you would like to try it out. Let me know and I will send it to you. It will go into the next iteration of the OrxUtils package.

Thanks,
W. David Ashley
IBM Systems and Technology Group Lab Services
Open Object Rexx Team
Office Phone: 512-838-0609 T/L 678-0609
Mobile Phone: 512-289-7506



"David Ruggles" <david@safedatausa.com>
Sent by: oorexx-devel-bounces@lists.sourceforge.net

03/29/07 03:30 PM
Please respond to
Open Object Rexx Developer Mailing List <oorexx-devel@lists.sourceforge.net>

To
"'Open Object Rexx Developer Mailing List'" <oorexx-devel@lists.sourceforge.net>
cc
Subject
[Oorexx-devel] rxfuncquery hangs





I'm running a very small ooRexx program on Linux (FC6) in Asterisk using the
AGI environment. This program uses rxfuncquery to see if 'SockLoadFuncs' is
available and calls rxfuncadd if it's not. It then connects to another
machine using the sockets package and gets an address uses asterisk to dial
that address and then exits. It completes and exits in a split second.

After the system has been running for a few hours the ooRexx program stops
working. Doing a quick trace shows that it gets to the rxfuncquery, pegs the
processor and hangs.

Any suggestions on what to look for?


Thanks,

David Ruggles
CCNA MCSE (NT) CNA A+
Network Engineer  Safe Data, Inc.
(910) 285-7200    david@safedatausa.com



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel