[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ecf-dev] Thread pooling

Hi all
i am playing around with the ECF remoteservices
i have built a simple stress testing that invoke hello service 8000 times

i have received this error:
An internal error has occurred.
unable to create new native thread


my code:

        // 6. Finally...call the proxy

        long start, end, total;
        start = System.currentTimeMillis();
        String response=null;
        long count = 8000;
        for (int i = 0; i<count;i++)
              response = proxy.sayHello("RemoteService Consumer");

        end = System.currentTimeMillis();
        total = end - start;

        long avg = total/count;
        System.out.println("total=["+total+"][avg=" +(avg) +"]"+ response);

does the server uses thread pooling?
if i try to guess what happen is that every invocation spawn new thread until the system is out of resources?