Question

When I send large form in struts2 the server throws a PermGen error and don’t saves all the form data.

the form has 6 fields and a grid, the grid has 10 columns where each row of the grid is a subpojo inside an ArrayList. The problem arises when I'm using the form and I have over 1000 rows in the grid. Upon receiving the pojo, the server starts saving the data but on the row 833, more or less, throws me a PermGen error.

The system specs are:

  • CPU: AMD Phenon X6 - 2.8 Ghz
  • Total Memory: 8Gb
  • JVM Memory: 2Gb
  • Tomcat Memory Pool: 2Gb
  • PermGen: 512Mb
  • JRE 6.37, Tomcat 7.0.37

What is the best way to solve this problem?

Was it helpful?

Solution

Increasing the PermGen solves my problem.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top