glassfish
  1. glassfish
  2. GLASSFISH-20691

CPU usage increases when an invalid value is set for http lister port

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: None
    • Component/s: web_container
    • Labels:
      None
    • Environment:

      Windows 7
      Glassfish 4.0
      JDK 7

      Description

      CPU usage increases and TimeoutException occurs when -1 is set for http lister port.

      Follow this step to reproduce the problem.

      1. asadmin set server.network-config.network-listeners.network-listener.http-listener-1.port=-1

      2. asadmin set server.network-config.network-listeners.network-listener.http-listener-1.port=28282

      3. asadmin set server.network-config.network-listeners.network-listener.http-listener-1.port=-1

      It takes a while to complete 3 and the TimeoutException is written in the server.log. I also confirmed CPU usage increases when 3. is executed.

      [2013-07-10T14:38:01.522+1000] [glassfish 4.0] [SEVERE] [] [] [tid: _ThreadID=61 _ThreadName=pool-12-thread-1] [timeMillis: 1373431081522] [levelValue: 1000] [[
        Config Listener class com.sun.enterprise.v3.services.impl.DynamicConfigListener notification took too long
      java.util.concurrent.TimeoutException
      	at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:258)
      	at java.util.concurrent.FutureTask.get(FutureTask.java:119)
      	at org.jvnet.hk2.config.Transactions$ConfigListenerNotifier$1.call(Transactions.java:289)
      	at org.jvnet.hk2.config.Transactions$ConfigListenerNotifier$1.call(Transactions.java:268)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      	at org.jvnet.hk2.config.Transactions$Notifier$1$1.run(Transactions.java:167)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:722)
      ]]
      

        Activity

        tak09 created issue -
        Shing Wai Chan made changes -
        Field Original Value New Value
        Assignee michael.y.chen [ michael.y.chen ] Shing Wai Chan [ swchan2 ]
        Component/s web_container [ 10622 ]
        Shing Wai Chan made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Shing Wai Chan made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Shing Wai Chan made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Shing Wai Chan
            Reporter:
            tak09
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: