You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2019/04/07 13:23:05 UTC

[Bug 63322] New: Distributed Jmeter test stops with "The current process has used all of its system allowance of handles for Window Manager objects"

https://bz.apache.org/bugzilla/show_bug.cgi?id=63322

            Bug ID: 63322
           Summary: Distributed Jmeter test stops with "The current
                    process has used all of its system allowance of
                    handles for Window Manager objects"
           Product: JMeter
           Version: 5.0
          Hardware: PC
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: selven.pillai@gmail.com
  Target Milestone: JMETER_5.1.1

While we run the 1u test for the Custom Java sampler, the test stops with below
error on the Jmeter server log in the win 10 client VM

ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.InternalError: The
current process has used all of its system allowance of handles for Window
Manager objects.

        at sun.awt.windows.WToolkit.eventLoop(Native Method)
        at sun.awt.windows.WToolkit.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)


We tried increasing the windows desktop heap memory for the non-interactive
mode to match the interactive mode
"Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\SubSystems\windows"

Windows SharedSection=1024,20480,20480 

But this only improves the number iteration the test can be run i.e. from 8
iterations to 68 iterations

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63322] Distributed Jmeter test stops with "The current process has used all of its system allowance of handles for Window Manager objects"

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63322

--- Comment #2 from Selven Pillai <se...@gmail.com> ---
Created attachment 36547
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36547&action=edit
Jmeter-Server log

The test stops after 51 iterations

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63322] Distributed Jmeter test stops with "The current process has used all of its system allowance of handles for Window Manager objects"

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63322

Felix Schumacher <fe...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #4 from Felix Schumacher <fe...@internetallee.de> ---
What is the content of your Java classes? Could they be the reason for the
resource leak? Can you try to minimize your test to one class and reproduce the
issue? If so, could you attach that test plan (together with a Java class that
reproduces the issue)?

Are you using any plugins?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63322] Distributed Jmeter test stops with "The current process has used all of its system allowance of handles for Window Manager objects"

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63322

Selven Pillai <se...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63322] Distributed Jmeter test stops with "The current process has used all of its system allowance of handles for Window Manager objects"

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63322

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om

--- Comment #6 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
The issue is certainly in your java custom code.
Unless you provide its code, we cannot help.

Ensure you free resources in your custom class which is probably the reason why
it fails.

Closing as INVALID

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63322] Distributed Jmeter test stops with "The current process has used all of its system allowance of handles for Window Manager objects"

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63322

--- Comment #5 from Selven Pillai <se...@gmail.com> ---
Just to give some background, the application under test (AUT) is a Java RMI
thick client application. So, i had create custom Java samplers by referencing
the application libraries/ jar files ( via adding user class path in the jmeter
properties). Each of the class corresponds to one java sampler. And i have 500
hundred of them at present. With one class, it works fine as the windows
handles allowance is big enough (I guess). Also, the AUT uses singleton
pattern, So I had to run each test user as 1 Jmeter instance.

As far as plugins are concerned, I am using defaults.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63322] Distributed Jmeter test stops with "The current process has used all of its system allowance of handles for Window Manager objects"

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63322

Mohamed Ibrahim <ro...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Mohamed Ibrahim <ro...@gmail.com> ---
Can you please attach the jmeter.log file.?
Also, Please give us some description on the process you do in Java sampler

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63322] Distributed Jmeter test stops with "The current process has used all of its system allowance of handles for Window Manager objects"

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63322

--- Comment #3 from Selven Pillai <se...@gmail.com> ---
Attached jmeter log is from Jmeter 3.1 but i have tested with Jmeter 5.0 as
well and it seems to behave in a similar fashion

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63322] Distributed Jmeter test stops with "The current process has used all of its system allowance of handles for Window Manager objects"

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63322

Felix Schumacher <fe...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal

-- 
You are receiving this mail because:
You are the assignee for the bug.