Unable to find or serve resource

跟風遠走 提交于 2019-12-02 00:44:17
Ioannis Deligiannis

This is most likely a bug with grizzly framework.

Possible causing bug: https://java.net/jira/browse/GLASSFISH-20681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

In that Jira, there is a jar patch. Copy to modules directory, clear the OSGI cache (delete glassfish4\glassfish\domains\domain1\osgi-cache) and restart. This worked for me.

Also see: GF4 incorrect timeout exception thrown in Servlet when multiple large responses are returned (requested)

Please note that the client gets resources from the server as HTTP GET requests. This means that for each CSS, JS or HTML file, you get an HTTP request.

Open you browser web console and click on network. Then go to any site and you will see how many requests you get.

Here are some suggestions regarding your problem.

  1. Try to increase the Maximum Pool Size of your server. Read here http://docs.oracle.com/cd/E26576_01/doc.312/e24936/tuning-glassfish.htm#abeea -> tuning the EJB Pool Settings
  2. Try to analyse your web app and see if there are too many requests for the same resource. You can do this in you browser as mentioned above.
  3. Analyse your JSPs for useless imports, includes or iFrames

I hope this helps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!