|
Quick Lists
|
|
Bug ID:
|
6399695
|
|
Votes
|
1
|
|
Synopsis
|
(se) Selector loses connections under stress with Linux kernel 2.4.x
|
|
Category
|
java:classes_nio
|
|
Reported Against
|
|
|
Release Fixed
|
|
|
State
|
11-Closed,
Not Reproducible,
bug
|
|
Priority:
|
4-Low
|
|
Related Bugs
|
6381793
|
|
Submit Date
|
16-MAR-2006
|
|
Description
|
When GlassFish Application server is installed on a 2.4 kernel and stressed using a stress tool (ab), the Selector seems to lose registration. Opening 300 connections that does a total of 100 requests on a single Selector demonstrate the problem. Mainly, doing:
% ab -n1000 -c300 -k http://localhost:8080/images.jar
The benchmark will output:
Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Send request timed out!
Completed 900 requests
Send request timed out!
Running the same test on 2.6x kernel (on the same hardware) isn't producing the problem. Attached is a test case that can be used to demonstrate the problem.
Posted Date : 2006-03-17 18:58:43.0
|
|
Work Around
|
Add -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider
Oups typo. The workaround is to move to a 2.6 kernel.
|
|
Evaluation
|
The connection loss and scalability issues that the submitter observes are on th RedHat 8.0 (Psyche) installation. The kernel is 2.4.20-18.8 (LinuxThreads).
The problem is not observed on RHEL 4 (Nahant Update 2), 2.6.9-5.ELsmp kernel (NPTL)
Posted Date : 2006-03-20 16:10:53.0
--
Checked with submitter and he has agreed to close this bug. More details in 6381793.
Posted Date : 2006-12-05 14:45:38.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |