Results 1 to 2 of 2

Thread: CGLIB dependency and Tomcat PermGen out of memory errors

  1. #1
    Join Date
    Nov 2004
    Location
    Cape Town, South Africa
    Posts
    33

    Red face CGLIB dependency and Tomcat PermGen out of memory errors

    Hi

    Spring-BlazeDS requires CGLIB (some of its classes are not interfaced and are thus proxied by CGLIB and not the JDK), but the rest of my application does not. CGLIB is causing the dreaded PermGen out of memory errors on my production Tomcat 5.5.23:

    java.lang.OutOfMemoryError: PermGen space

    Is there any plan to remove the dependency on CGLIB from Spring-BlazeDS? If not, what workaround is recommended to avoid the PermGen errors in Tomcat?

    I'm looking for a better solution than increasing MaxPermSize for the server, and upgrading Tomcat. I'm not even aware if a newer version of Tomcat resolves this problem...

    Thanks

  2. #2
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    I would be surprised if Spring BlazeDS's use of class-based AOP proxies is causing the problem, because we only advise one class (flex.messaging.endpoints.AbstractEndpoint) which in a typical scenario never has more than a handful of instances (however many you've configured in services-config.xml) created at application startup time. What led you to this conclusion? Have you perhaps also turned on class-based AOP proxies globally for the application?
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •