Dalia,

First of all, you should not start with such high numbers -n 2000, -c 1000
The way to resolve this error, is to increase your open file descriptors on 
your Operating system.
If you can give me info on your OS, i can provide some details, or you can 
Google.....

For linux , you can do something like

cat /proc/sys/fs/file-max 


sysctl -w fs.file-max=100000 

or some higher number, depending on your system configuration.

Hope this helps
-Kamal



>________________________________
> From: Dalia Sobhy <dalia.mohso...@hotmail.com>
>To: discuss@restlet.tigris.org 
>Sent: Thursday, September 20, 2012 7:55 AM
>Subject: Apache Bench Error
> 
>Dear all,
>
>While testing my restlet application using apache bench, I receive this
>error:
>
>
>$ ab -n 2000 -c 1000 http://localhost:8182/test/12345/retrievepatient
>This is ApacheBench, Version 2.3 <$Revision: 655654 $>
>Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
>Licensed to The Apache Software Foundation, http://www.apache.org/
>
>Benchmarking localhost (be patient)
>socket: Too many open files (24)
>
>How to allow the server to have more connections/accept more requests ??
>
>
>
>--
>View this message in context: 
>http://restlet-discuss.1400322.n2.nabble.com/Apache-Bench-Error-tp7578367.html
>Sent from the Restlet Discuss mailing list archive at Nabble.com.
>
>------------------------------------------------------
>http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3007358
>
>
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3007365

Reply via email to