What platform are you running GlassFish on?
In most cases you need to tune your operating system for File I/O, TCP
etc, see Section
http://docs.sun.com/app/docs/doc/819-3681/abeir?a=view
in the Performance and Tuning guide.
What you need to look at for the below error is the "file descriptors"
setting, for Solaris see:
http://docs.sun.com/app/docs/doc/819-3681/6n5srlhrb?a=view#abeix for
Linux, see:
http://docs.sun.com/app/docs/doc/819-3681/6n5srlhrh?a=view#abejd
Regards,
Chris
glassfish_at_javadesktop.org wrote:
> This case sometimes happen. The cpu usage always is more than 95% and the log shows the followings error:
>
> Error - file not found. java.io.FileNotFoundException: /opt/tools/glassfish/updatecenter/config/config.xml (Too many open files) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at com.sun.enterprise.update.config.ConfigManagerImpl.getInputStream(ConfigManagerImpl.java:429) at com.sun.enterprise.update.config.ConfigManagerImpl.initializeUpdatecenterBean(ConfigManagerImpl.java:403) at com.sun.enterprise.update.config.ConfigManagerImpl.<init>(ConfigManagerImpl.java:80) at sun.reflect.GeneratedConstructorAccessor254.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at com.sun.enterprise.update.UpdateManager.getConfigManager(UpdateManager.java:173) at com.sun.enterprise.update.schedule.SchedulerImpl.<init>(SchedulerImpl.java:74) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at com.sun.enterprise.management.ext.update.UpdateStatusImpl.getNumNewSoftware(UpdateStatusImpl.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.enterprise.management.support.AMXImplBase.getAttributeByMethod(AMXImplBase.java:1161) at com.sun.enterprise.management.support.AMXImplBase.getAttributeInternal(AMXImplBase.java:1048) at com.sun.enterprise.management.support.AMXImplBase.getAttribute(AMXImplBase.java:1020) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:666) at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:638) at com.sun.enterprise.interceptor.DynamicInterceptor.getAttribute(DynamicInterceptor.java:196) at com.sun.appserv.management.util.jmx.MBeanProxyHandler.getAttribute(MBeanProxyHandler.java:443) at com.sun.appserv.management.util.jmx.MBeanProxyHandler.invoke(MBeanProxyHandler.java:604) at com.sun.appserv.management.client.handler.AMXProxyHandler._invoke(AMXProxyHandler.java:1113) at com.sun.appserv.management.client.handler.AMXProxyHandler.invoke(AMXProxyHandler.java:1024) at $Proxy52.getNumNewSoftware(Unknown Source) at com.sun.enterprise.tools.admingui.handlers.CommonHandlers.initSessionAttributes(CommonHandlers.java:153) at sun.reflect.GeneratedMethodAccessor2160.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:421) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:343) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:317) at com.sun.jsftemplating.layout.descriptors.LayoutComponent.beforeCreate(LayoutComponent.java:331) at com.sun.jsftemplating.layout.descriptors.LayoutComponent.getChild(LayoutComponent.java:270) at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:413) at com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:203) at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:205) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:104) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at com.sun.enterprise.tools.admingui.servlet.DelayedInitFacesServlet.service(DelayedInitFacesServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
>
> The file is exist. How to solve it? thanks!
> [Message sent by forum member 'joechang316' (joechang316)]
>
> http://forums.java.net/jive/thread.jspa?messageID=292935
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>