You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rasmus - Camp Online <ra...@camp-online.dk> on 2005/02/26 11:39:17 UTC

Heap size - java.lang.OutOfMemoryError

Hi

I keep getting a  java.lang.OutOfMemoryError in my tomcat-log. I am
pretty sure it relates to the size of my heap - I keep getting the error
when the tomcat.exe process reaches approx. 118 MB of memory usage.

I am running Windows Server 2003, IIS 6, Tomcat 4.1 (running as a
windows service)

I have tried everything to increase the heap size, setting the
environment variables:

-CATALINA_OPTS -Xms256m -Xmx768m
-JAVA_OPTS -Xms256m -Xmx768m
-TOMCAT_OPTS -Xms256m -Xmx768m

But no matter what I do, it has ABSOLUTELY NO EFFECT

Please help, as I am going crazy over this....

Best regards,

Rasmus



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Heap size - java.lang.OutOfMemoryError

Posted by A Leg <ha...@yahoo.com>.
Hi Rasmus

Switch to Linux 8-)

Unfortunatly, I have no idea but joke. I realy think that this problem 
is OS dependent.

Are you sure that your environment variables are taken in count ?

Suppose you run tomcat using some startup.bat ? in this case may be 
could you print some debug telling you the real args passed to the JVM.

I have done this on linux using set -x in startup.sh, I don't remember 
the equivalent for bat.
I think you can just change the first line echo off by echo on. May be ????

At that time I had seen that for any reason my env was crashed somewhere.

Andre


Rasmus - Camp Online wrote:

>Hi
>
>I keep getting a  java.lang.OutOfMemoryError in my tomcat-log. I am
>pretty sure it relates to the size of my heap - I keep getting the error
>when the tomcat.exe process reaches approx. 118 MB of memory usage.
>
>I am running Windows Server 2003, IIS 6, Tomcat 4.1 (running as a
>windows service)
>
>I have tried everything to increase the heap size, setting the
>environment variables:
>
>-CATALINA_OPTS -Xms256m -Xmx768m
>-JAVA_OPTS -Xms256m -Xmx768m
>-TOMCAT_OPTS -Xms256m -Xmx768m
>
>But no matter what I do, it has ABSOLUTELY NO EFFECT
>
>Please help, as I am going crazy over this....
>
>Best regards,
>
>Rasmus
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


taglib : unable to find setter method for attribute

Posted by sanjay paithankar <ca...@yahoo.com>.
Hello Team,

I am facing a problem in taglib 

Initally I was using JSDK 1.4.2_05 for compiling and
running my application everythign was running very
fine , now the JRE & JDK change to 1.4.2_07 and
suddenly it starts giving me error saying "unable to
find setter method for attribute "

I am using tomcat 4.1.29 

Please let em know if anyone already have any idea
about this 

-Sanjay 


Methode defined in the Java file are 

    private int seconds = -1;
   
    public void setPoll(int seconds) {
        this.seconds= seconds;
    }
   
    public int getPoll(int seconds) {
       return this.seconds;
    }

and whiel defining the taglib 

<!-- InitAutoRefreshTag -->
  <!-- Tag to initialize the auto-refresh related
components -->
  <tag>
    <name>InitAutoRefresh</name>
    <tag-class>calss name </tag-class>
    <body-content>empty</body-content>
    <description>
      Writes out the JavaScript logic to initialize
auto-refresh when the page loads.
    </description>
    <attribute>
      <name>poll</name>
      <!-- The polling interval in seconds.  This is
how often the web-server is polled to update the
status and values. Default is 3 seconds.  -->
      <required>false</required>
      <rtexprvalue>true</rtexprvalue>
    </attribute>
  </tag>

And the error given is as follows 

Jasper exception : unable to find setter method for
attribute "poll"




		
__________________________________ 
Do you Yahoo!? 
Yahoo! Sports - Sign up for Fantasy Baseball. 
http://baseball.fantasysports.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org