WebSphere Application Server - WebSphere V5 on Z/OS hangs during shutdown.

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > August 2006 > WebSphere V5 on Z/OS hangs during shutdown.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author WebSphere V5 on Z/OS hangs during shutdown.

2006-08-23, 1:29 pm

I am working with WebSphere V5 on the Z/OS platform and am seeing the servant region hang when I issue a console STOP .

I do have a native library running inside the underlying JVM ( loaded via ?Xrun) which creates a pthread that is known to the jvm (using JNI AttachCurrentThread). The thread is designed to terminate during shutdown ( using Runtime?s addShutdownHook() me
thod ). But that never gets called. I know the native library is the variable because I don't see the hang behavior when the library is not loaded.

When the library is loaded, I see websphere performing normal shutdown processing ( stopping applications, etc ) even progressing as far as issuing the WSVR0024I SERVANT PROCESS stopped message). And then nothing ......

This is ported code that works fine on other platforms ( linux, aix, windows, solaris ).

Any thoughts would be appreciated.

2006-08-25, 1:44 am

Figured this out myself.

Native library using JNI spun up a Java thread which was in a wait state at the time of the shutdown. JDK interrupts this thread at termination (prior to driving Runtime's shutdown callback), but thread did not take hint and terminate; this caused JDK to
hang. As soon as thread was corrected to self-terminate hang disappeared.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com