Re: [Simpleweb-Support] Problem when stress testing an application using SimpleWeb
                
                Brought to you by:
                
                    niallg
                    
                
            
            
        
        
        
    | 
     
      
      
      From: Niall G. <gal...@ya...> - 2005-07-26 14:53:13
      
     
   | 
Hi Henry,
The stream has been closed because of an error! An
error has occured probably because the HTTP request
contained a message body. At any rate there is some
HTTP/1.1 violation with delimeters. 
Has your request got a message body that you have
failed to read?
Niall
--- Henry Voyer <hen...@ge...> wrote:
> Hi everyone
> 
> I have been stress testing an extensive transaction
> oriented application
> that uses simple.
> The stress test consist of using jmeter with around
> 20 threads sending 500
> requests each to my server.
> 
> After a couple of minutes the system stops.
> 
> So i started putting logs and found the section
> where the errors occurs.
> The code :
> 
> simple.http.Processor
> 
>  private void execute() throws InterruptedException
> {
>       logger.debug("Reading a process");
>       Object top = queue.dequeue();
>       logger.debug("Processing " +
> ToStringBuilder.reflectionToString(top));
>       Poller poller = (Poller)top;
>       try{
>          logger.debug("Who is being processed " +
> ToStringBuilder.reflectionToString(proc));
>          poller.process(proc);
>          logger.debug("Finishing pooler");
>       }catch(Exception e){
>          logger.error("Closing the pooler due to: ",
> e);
>          poller.close();
>       }
>    }
> 
> The exception is:
> 
> ERROR 2005-07-26 10:02:00,125 Processor.execute -
> Closing the pooler due to:
> java.io.IOException: Stream closed
> 	at
>
java.io.PushbackInputStream.ensureOpen(PushbackInputStream.java:57)
> 	at
>
java.io.PushbackInputStream.unread(PushbackInputStream.java:181)
> 	at simple.http.PollerInputStream.available(Unknown
> Source)
> 	at simple.http.BasicPoller.process(Unknown Source)
> 	at simple.http.Processor.execute(Unknown Source)
> 	at simple.http.Processor.run(Unknown Source)
> 	at java.lang.Thread.run(Thread.java:595)
> 
> My configuration is:
> 
>   	System.setProperty("simple.http.load.mapper",
> custommapper);
>       System.setProperty("simple.http.poller",
> "simple.http.GranularPoller");
> 
>       MapperEngine engine = new MapperEngine(new
> FileContext(),
> serviceManager);
> 
>       ProtocolHandler handler =
> HandlerFactory.getInstance(engine);
> 
>      
>
ProcessQueue.getInstance().resize(processingThreads);
> 
> 	Connection connection =
> ConnectionFactory.getConnection(handler);
> 
>       InetAddress netAddress =
> InetAddress.getByName(myip);
>       serverSocket = new ServerSocket(port, backlog,
> netAddress);
> 
> 	connection.connect(serverSocket);
> 
> 
> Has anyone experience this problem and what did you
> do to fix this?
> 
> 
> 
>
-------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux
> Migration Strategies
> from IBM. Find simple to follow Roadmaps,
> straightforward articles,
> informative Webcasts and more! Get everything you
> need to get up to
> speed, fast.
>
http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Simpleweb-Support mailing list
> Sim...@li...
>
https://lists.sourceforge.net/lists/listinfo/simpleweb-support
> 
Niall Gallagher
__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
 |