Issue Details (XML | Word | Printable)

Key: GLASSFISH-19035
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: oleksiys
Reporter: deep_singh
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
glassfish

[Perf] Performance degradation when using dynamic http thread pool

Created: 23/Aug/12 10:20 PM   Updated: 16/Feb/13 02:47 AM   Resolved: 16/Feb/13 02:47 AM
Component/s: grizzly-kernel
Affects Version/s: 4.0_b40
Fix Version/s: 4.0_b60

Time Tracking:
Not Specified

Environment:

Linux 2.2.16 OEL x64


Tags: HTTP JSP PSRBUG ThreadPool glassfish
Participants: deep_singh and oleksiys


 Description  « Hide

Seeing significant performance degradation when using dynamic http thread pool when running a JSP HTTP micro benchmark. The degradation has been traced to a hot ReentrantLock in SyncThreadPool implementation of thread pool. When FixedThreadPool is used, there is significant improvement in performance results compared to dynamic thread pool.

Have tried a patch from Alexey replacing ReentrantLock with a Synchronized block, but that is not yielding much improvement.

The benchmark is a simple war file with 3 JSPs doing HelloWorld, showing current date and maintaining a simple user session with hit count.



Sort Order: Ascending order - Click to sort in descending order
Scott Oaks made changes - 03/Dec/12 08:06 PM
Field Original Value New Value
Tags glassfish JSP HTTP ThreadPool HTTP JSP PSRBUG ThreadPool glassfish
oleksiys made changes - 16/Feb/13 02:47 AM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 4.0_b60 [ 15649 ]
Resolution Fixed [ 1 ]