Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

100% load in POAImpl.acquireLock #11

Open
glassfishrobot opened this issue Apr 12, 2012 · 6 comments
Open

100% load in POAImpl.acquireLock #11

glassfishrobot opened this issue Apr 12, 2012 · 6 comments

Comments

@glassfishrobot
Copy link

Glassfish threads can hang in an endless loop. This is cause by a bogus exit condition:

{{
// in acquireLock:
do
{
...
try

{ ... // invokation of a function which detects thread interruption and throws InterruptedException }

catch(InterruptedException exc)

{ interrupted = true; }

if(interrupted)
Thread.currentThread().interrupt();
} while(true);
}}

If the current thread the InterruptedException is caught but does not break the loop.

=> 100% load for the thread. You can end up with many threads and thus all CPUs at 100%.

suggested fix: don't catch the InterruptedException. Only catch an Exception if you can handle it properly. (here it's not handly properly, catching an InterruptedException to interrupt() again is simply nonsens.)

Environment

any

Affected Versions

[current]

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Reported by bebbo

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Was assigned to hvilekar

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
bebbo said:
You can try my patched version and update the glassfish-corba-orb.jar (in modules).

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
File: POAImpl.class
Attached By: bebbo

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA GLASSFISH_CORBA-11

@glassfishrobot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant