Error on more than 900 concurrent connection
David Alves
davidralves at gmail.com
Thu Mar 25 06:05:21 EDT 2010
Hi
I'm no expert but if you are running linux it might be caused because you reached the maximum number of open file descriptors.
If that's the case try increasing them:
http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/
Regards
David
On Mar 25, 2010, at 9:19 AM, Syahreza Pahlevi Ginting wrote:
> Dear All, please help..
> I got this error, and when this happen, server stop.
> I used Netty 3.1.5.GA version.
> This is happen when server process connection more than 900 concurrent connection and receive new connection.
> This is coding when binding.
> ChannelFactory factory = new NioServerSocketChannelFactory(Executors.newCachedThreadPool(),
> Executors.newCachedThreadPool());//,200);
> ServerBootstrap bootstrap = new ServerBootstrap(factory);
> log.info("Start listening on " + ip + ":" + port);
> bootstrap.setPipelineFactory(new ConnPipelineFactory(this));
>
> bootstrap.setOption("child.tcpNoDelay", true);
> bootstrap.setOption("child.keepAlive", true);
> bootstrap.setOption("child.reuseAddress", true);
> bootstrap.setOption("child.connectTimeoutMillis", 10000);
> conData.setBootstrapSvr(bootstrap);
> // Bind and start to accept incoming connections.
> InetAddress inet = InetAddress.getByName(ip);
> Channel chn = bootstrap.bind(new InetSocketAddress(inet,port));
>
> This is error :
>
> Exception in thread "pool-1-thread-1" java.lang.InternalError
> at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
> at sun.misc.URLClassPath.getResource(Unknown Source)
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.util.ResourceBundle$RBClassLoader.loadClass(Unknown Source)
> at java.util.ResourceBundle$Control.newBundle(Unknown Source)
> at java.util.ResourceBundle.loadBundle(Unknown Source)
> at java.util.ResourceBundle.findBundle(Unknown Source)
> at java.util.ResourceBundle.findBundle(Unknown Source)
> at java.util.ResourceBundle.getBundleImpl(Unknown Source)
> at java.util.ResourceBundle.getBundle(Unknown Source)
> at java.util.logging.Level.getLocalizedName(Unknown Source)
> at java.util.logging.SimpleFormatter.format(Unknown Source)
> at java.util.logging.StreamHandler.publish(Unknown Source)
> at java.util.logging.ConsoleHandler.publish(Unknown Source)
> at java.util.logging.Logger.log(Unknown Source)
> at java.util.logging.Logger.doLog(Unknown Source)
> at java.util.logging.Logger.logp(Unknown Source)
> at org.jboss.netty.logging.JdkLogger.warn(JdkLogger.java:86)
> at org.jboss.netty.logging.InternalLoggerFactory$1.warn(InternalLoggerFactory.java:133)
> at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink$Boss.run(NioServerSocketPipelineSink.java:242)
> at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:101)
> at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.util.zip.ZipException: error in opening zip file
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(Unknown Source)
> at java.util.jar.JarFile.<init>(Unknown Source)
> at java.util.jar.JarFile.<init>(Unknown Source)
> at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
> at sun.misc.URLClassPath$JarLoader.access$600(Unknown Source)
> at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.misc.URLClassPath$JarLoader.ensureOpen(Unknown Source)
> ... 32 more
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20100325/14f3c716/attachment-0001.html
More information about the netty-users
mailing list