facebook

outofmemory error when compiling JSPs [Closed]

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #231195 Reply

    johnjoreilly
    Member

    Using jboss 3.2.6 and tomcat 5, I can’t get any new JSP pages to compile.

    Even with a default jsp page, I get:

    The system is out of resources.
    Consult the following stack trace for details.
    java.lang.OutOfMemoryError

    16:26:29,431 ERROR [Engine] StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    Compile failed; see the compiler error output for details.
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944)

    any ideas?

    #231207 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev.

    If the page is sufficiently complex you might have a cycle somewhere… have you tried giving Tomcat/JBoss more memory when running?

    #231233 Reply

    johnjoreilly
    Member

    I have tried boosting the memory, by setting JVM memory allocation to
    -Xms128m -Xmx256m in JBoss’s run.bat. The complexity of the page is not the issue. HelloWorld.jsp won’t work.

    #231239 Reply

    johnjoreilly
    Member

    OK, I found the correct place to boost the memory. It’s working now.

    window>preferences>Myeclipse>Application Servers>JBoss3>JDK>Option Java VM Arguments

    #231290 Reply

    Scott Anderson
    Participant

    John,

    Thanks for following up so others can benefit from what you found.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: outofmemory error when compiling JSPs [Closed]

You must be logged in to post in the forum log in