1

Deploy current application and it works fine on one server but get this error on another new installed server:

Initializing Spring FrameworkServlet 'SampleApp'

16:10:50,541 WARN [org.jboss.modules] (MSC service thread 1-4) Failed to define class org.codehaus.jackson.impl.WriterBasedGenerator in Module "deployment.application.war:main" from Service Module Loader: java.lang.OutOfMemoryError: PermGen space

Check module folder for both application, and both have same valid jackon denpendencies.

So what could be the issue then?

Dreamer
  • 7,333
  • 24
  • 99
  • 179

1 Answers1

2

I think, your problem is not related with Json or Jackson. You have too small default value for MaxPermSize.

Helpful links:

Community
  • 1
  • 1
Michał Ziober
  • 37,175
  • 18
  • 99
  • 146
  • Thankyou . I raise to 512M, but still get same out of memory error, original it was 256M, what is the proper size for J2EE? – Dreamer May 28 '13 at 15:06
  • Are you sure that you are setting it correctly? Which web server do you use? I am using Tomcat and -XX:MaxPermSize=256m option works for me. – Michał Ziober May 28 '13 at 15:23
  • I am on JBoss, originally it is 256M, set to 512M seems not resolve the issue. – Dreamer May 28 '13 at 15:30
  • Are you have same JBoss installation on both servers? Could you check how it configured on working machine? – Michał Ziober May 28 '13 at 19:10