greenrd     00/12/12 08:26:43

  Modified:    src/org/apache/cocoon Engine.java
  Log:
  better out of memory error message - but we should try and ensure that this 
never happens, because if it occurs in a servlet not in Cocoon - nothing we can 
do about it
  
  Revision  Changes    Path
  1.44      +8 -5      xml-cocoon/src/org/apache/cocoon/Engine.java
  
  Index: Engine.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/Engine.java,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- Engine.java       2000/12/08 11:50:45     1.43
  +++ Engine.java       2000/12/12 16:26:42     1.44
  @@ -1,4 +1,4 @@
  -/*-- $Id: Engine.java,v 1.43 2000/12/08 11:50:45 greenrd Exp $ --
  +/*-- $Id: Engine.java,v 1.44 2000/12/12 16:26:42 greenrd Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -77,7 +77,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Stefano Mazzocchi</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Robin Green</a>
  - * @version $Revision: 1.43 $ $Date: 2000/12/08 11:50:45 $
  + * @version $Revision: 1.44 $ $Date: 2000/12/12 16:26:42 $
    */
   
   public class Engine implements Defaults {
  @@ -416,9 +416,12 @@
               }
   
               if (page == null) {
  -                if (LOG) logger.log(this, "System is out of memory", 
Logger.EMERGENCY);
  -                throw new Exception("FATAL ERROR: the system ran out of 
memory when"
  -                    + " processing the request. Increase your JVM memory.");
  +                if (LOG) logger.log(this, "JVM ran out of memory", 
Logger.EMERGENCY);
  +                throw new Exception("FATAL ERROR: the JVM ran out of memory 
when\n"
  +                    + " processing the request. The maximum amount of memory 
used by your VM\n"
  +                    + " can be changed at the command line (consult your JDK 
documentation)\n"
  +                    + " and may not be at all related to the amount of 
physical memory\n"
  +                    + " in your machine!");
               }
   
               if (DEBUG) {
  
  
  

Reply via email to