• Post Reply Bookmark Topic Watch Topic
  • New Topic

Concurrent user testing - File Upload  RSS feed

 
Vinod Kumar
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends.

In a 20 user concurrent file upload test , I found this error in WAS server log. Are there any issues within apache file upload component? There were around 50 users conurrently within the app during load test and only 20 were in file upload.

This was first exception and app went down. So wondering if anyone faced any similar issue. Thanks for any help.

00000030 ServletWrappe E SRVE0068E: Could not invoke the service() method on servlet action. Exception thrown : java.lang.OutOfMemoryError
at java.io.ByteArrayOutputStream.<init>(ByteArrayOutputStream.java:75)
at org.apache.commons.fileupload.DeferredFileOutputStream.<init>(DeferredFileOutputStream.java:131)
at org.apache.commons.fileupload.DefaultFileItem.getOutputStream(DefaultFileItem.java:558)
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:406)
at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:233)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209)
 
Arun Kumar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It happens if memory is low or users are uploading huge files which is eating up all memory. Check how much memory your server is using/allocated?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!