are you looking for automated test tools? Like jmeter?
On Fri, Feb 22, 2008 at 2:51 PM, Brenno Hayden <[EMAIL PROTECTED]> wrote:
> Created my MyServer.java (below) mine 2.0.0-m1 to support more than 20,000
> simultaneous connections there is a tool to check if my server using mine
> supports 20000 connections? How to can I do this test performance? How do I
> know the maximum number of customers connected?
>
> MyServer.java
>
> public class MyServer {
>
> private static int TCP_PORT = 4443;
>
> private static int TIMEOUT = 60;
>
> public static void main(String[] args) throws Exception {
> IoAcceptor acceptor = new NioSocketAcceptor(5);
> acceptor.setHandler(new Handler());
> acceptor.getFilterChain().addLast("executor", new ExecutorFilter(
> Executors.newCachedThreadPool()));
> acceptor.getSessionConfig().setIdleTime(IdleStatus.BOTH_IDLE,
> TIMEOUT);
> acceptor.setDefaultLocalAddress(new InetSocketAddress(TCP_PORT));
> acceptor.bind();
> System.out.println("Listening on port " + TCP_PORT);
> for (;;) {
> System.out.println("R: " + acceptor.getReadBytesThroughput()
> + ", W: " + acceptor.getWrittenBytesThroughput());
> Thread.sleep(3000);
> }
> }
> }
>
> graciously
>
> ________________________
> Brenno Hayden F. Dantas
>
--
--------------------------------
Talent hits a target no one else can hit; Genius hits a target no one
else can see.