java - Glassfish loads JavaScript files really slow (> 1 minute) -


I have a strange problem in my glassfish-web application.

Most of the time, my index .jsp site loads really fast. But sometimes (especially after updating a new version of the application), I get a group of TimeOutExceptions in Glassfish.

In the Chrome Developer Console, JavaScript files are 'pending' on the state, though .jsp and CSS files are loading very quickly, though. In fact, after 1 minute (or sometimes 1.5 minutes), most Javascript files are on '200', some of them remain 'unsuccessful'. After reloading the page, everything works fine.

View screenshots from Chrome Permanent State:

Thriving State:

These errors appear on the glassfish:

 [# | 2014-07-25T13: 51: 12.321 + 0200 | Warning | Glassfish 4.0 | Javax.enterprise.web._vs.server | _ThreadID = 27; _ThreadName = Thread-7; _TimeMillis = 1406289072321; _LevelValue = 900; | StandardWrapperValve [default]: Servlet.service () servlet threw default exception java.io .IOException: org.glassfish.grizzly.utils.Exceptions.makeIOException (Exceptions.java:81) org.glassfish.grizzly.http.io .OutputBuffer.blockAfterWriteIfNeeded at (OutputBuffer.java:958) java.util.concurrent.TimeoutException org.apache.catalina.connector.OutputBuffer at org.apache.catalina.connector.OutputBuffer.writeBytes org.glassfish.grizzly.http. Io.OutputBuffer.write (OutputBuffer.java:682) (. OutputBuffer.java355) .write (OutputBuffer.java:342) org.apache.catalina.connector.CoyoteOutputStream.write (CoyoteOutputStream.java:161) org.apache On the organization at .catalina.servlets.DefaultServlet.copy (DefaultServlet.java:2069). apache.catalina.servlets.DefaultS ervlet.serveResource org.apache.catalina.servlets.DefaultServlet.doGet (DefaultServlet.java:518) to (DefaultServlet.java:1092) (javax.servlet.http.HttpServlet.service on javax.servlet HttpServlet.java:687) on .http.HttpServlet.service (HttpServlet.java:790) org.apache.catalina.core.StandardWrapper.service (StandardWrapper.java:1682) on org.apache.catalina.core.StandardWrapperValve.invoke at (StandardWrapperValve.java:318) org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:160) on org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:734) org.apache.catalina At .core.StandardPipeline com.sun.enterprise.web.WebPipeline.invoke (WebPipeline.java:99) called on org.apache on org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:174) (StandardPipeline.java:673) .catalina.connector.CoyoteAdapter.doService org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java357) at com.sun.enterprise.v3.se rvices.impl.ContainerMapper Service (ContainerMapper.java:188) org.glassfish.grizzly.http.server.HttpHandler.doHandle at org.glassfish.grizzly.http.server.HttpHandler.runService (HttpHandler.java:191) (HttpHandler.java:168) Org.glassfish.grizzly.filterchain.ExecutorResolver $ 9.execute at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead (HttpServerFilter.java:189) (executorResolver.java:119) at the organization. DefaultfilterChoice.filters (DefaultFilterChain.javamore88) on org.glassfish.grizzly.filterchain at Glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter (org.glassfish.grizzly.filterchain.defaultter.fileterchain.DefaultFilterChain.exiluteChainPart.defaultfilterChain Java: 136) org.glassfish.grizzly.filterchain.DefaultFilterChain.process (DefaultFilterChain.java:114) Org.glassfish on org.glassfish.grizzly.ProcessorExecutor.execute (ProcessorExecutor.java:77) on org.glassfish.grizzly.nio.transport. on .TCPNIotransport.fireIOEvent (TCPNIotransport.java:838) on Org.glassfish.grizzly.strategies grizzly.strategies. Sarikavigya on Org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0 (work-thread Iostretikjawaprati 15) FirioVentive (AbrixIstrategy.Java 113). WorkerTredred IOstracky.x $ 100 (VIRCTRED EAUSTRETTY.Java 55) org.glassfish.grizzly at Org.glassfish.grizzly.strategies.WorkerThreadIOStrategyWorkerThreadRunnable.run (WorkerThreadIOStrategy.java:135) .threadpool.AbstractThreadPool $ Worker.doWork (AbstractThreadPool.java; 64) due to KAbstractThreadPool $ Workerkrun JavaklangkThreadkrun on org.glassfish.grizzly.threadpool (AbstractThreadPool.java:544) (Thread.java:744): java.util.concurrent.FutureTask. java.util.concurrent.TimeoutException (FutureTask Java to get: 201) org.glassfish.grizzly.http.io.OutputBuffer.blockAfterWriteIfNeeded (OutputBuffer.java:951) ... 36 more  

I Glasfish Using the 4 Community Edition .

Thank you for your help

Simon

I created all JavaScrip T files In a large file (and it was reduced) and after that, the problem never happened again.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -