|
From: Gil A. <gi...@gi...> - 2005-03-02 18:42:19
|
As I understand it, and I could be wrong... 32-bit windows has limits on the maximum contiguous memory a process can allocate to itself (About 2GB). Plus, there is some overheard with the JVM and associated objects. Depending on the machine you have and your JVM, you probably will not be able to allocate more than 1.5 GB. The most I've ever been able to allocate on a 32-bit Windows box with a 1.4 JRE is 1450M. For more info on this see: http://forum.java.sun.com/thread.jspa?forumID=37&threadID=201718 -Gil At 07:59 AM 3/2/2005, you wrote: >Hello, > >I have the wrapper configured using method 1 and working but wanted to >crank up the amount of memory available to the JVM so I set the >wrapper.java.initmemory to be 1024 and the wrapper.java.maxmemory to be >2048. Previously I had them set to 1024 for init and 1280 for max and it >starts the application fine. If I try to use a value bigger than 1280 it >always fails. Has anyone else experienced this? If so, how did you get >around this? > >I am using this on a Window2003 server with 4GB ram and about 3.5GB >unutilized? I am using JVM 1.4.2_06 on ther server and using it to start >JBoss 3.2.7. Any help would be greatly appreciated. > >Here is my wrapper.conf if it is of any help. > >I get an error when I try to start service of: > >Event Type: Information >Event Source: OneWebApp >Event Category: jvm2 >Event ID: 100 >Date: 3/2/2005 >Time: 9:51:38 AM >User: N/A >Computer: RCAWINAPPDEV >Description: >Could not reserve enough space for object heap > >#******************************************************************** ># Wrapper Version 3.1.2 >#******************************************************************** > ># Java Application >wrapper.java.command=D:\java\j2sdk1.4.2_06\bin\java > ># Java Main class. This class must implement the WrapperListener interface ># or guarantee that the WrapperManager class is initialized. Helper ># classes are provided to do this for you. See the Integration section ># of the documentation for details. >wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp > ># Java Classpath (include wrapper.jar) Add class path elements as ># needed starting from 1 >wrapper.java.classpath.1=D:\JBoss\jboss_tomcat\jboss\server\tomcatEclipse_Ryerson\lib\wrapper.jar >wrapper.java.classpath.2=D:\java\j2sdk1.4.2_06\lib\tools.jar >wrapper.java.classpath.3=D:\JBoss\jboss_tomcat\jboss\bin\run.jar > ># Java Library Path (location of Wrapper.DLL or libwrapper.so) >wrapper.java.library.path.1=D:\JBoss\jboss_tomcat\jboss\server\tomcatEclipse_Ryerson\lib > ># Java Additional Parameters - Remote Debugging Disabled (default) ># wrapper.java.additional.1=-server >-Dprogram.name=D:\JBoss\jboss_tomcat\jboss\bin\run.bat ># >wrapper.java.additional.2=-Dpropfile=D:\RcDepWarJB_Ryerson\summit\assnlist.properties ># >wrapper.java.additional.3=-Dcontextfile=D:\RcDepWarJB_Ryerson\summit\context.properties ># wrapper.java.additional.4=-Drc.plugins=D:\RcPlugins ># >wrapper.java.additional.5=-Drc.serverConfigFile=D:\RcDepWarJB_Ryerson\summit\config.properties ># wrapper.java.additional.6=-Drc.debugLevel=2 -XX:MaxPermSize=256m >-XX:PermSize=64m -Djava.rmi.server.hostname=oneappdev.ruffalocody.com > ># Java Additional Parameters - Remote Debugging Enabled >wrapper.java.additional.1=-server >-Dprogram.name=D:\JBoss\jboss_tomcat\jboss\bin\run.bat >wrapper.java.additional.2=-Dpropfile=D:\RcDepWarJB_Ryerson\summit\assnlist.properties >wrapper.java.additional.3=-Dcontextfile=D:\RcDepWarJB_Ryerson\summit\context.properties >wrapper.java.additional.4=-Drc.plugins=D:\RcPlugins >-Drc.serverConfigFile=D:\RcDepWarJB_Ryerson\summit\config.properties >wrapper.java.additional.5=-Drc.debugLevel=2 -XX:MaxPermSize=256m >-XX:PermSize=64m -Djava.rmi.server.hostname=oneappdev.ruffalocody.com >wrapper.java.additional.6=-Xdebug >-Xrunjdwp:server=y,transport=dt_socket,address=4143,suspend=n > ># Initial Java Heap Size (in MB) >wrapper.java.initmemory=1024 > ># Maximum Java Heap Size (in MB) >wrapper.java.maxmemory=1280 > ># Application parameters. Add parameters as needed starting from 1 >wrapper.app.parameter.1=org.jboss.Main >wrapper.app.parameter.2=-c >wrapper.app.parameter.3=tomcatEclipse_Ryerson > >#******************************************************************** ># Wrapper Logging Properties >#******************************************************************** ># Format of output for the console. (See docs for formats) >wrapper.console.format=LPTM > ># Log Level for console output. (See docs for log levels) >wrapper.console.loglevel=NONE > ># Log file to use for wrapper output logging. >wrapper.logfile= > ># Format of output for the log file. (See docs for formats) >wrapper.logfile.format=LPTM > ># Log Level for log file output. (See docs for log levels) >wrapper.logfile.loglevel=NONE > ># Maximum size that the log file will be allowed to grow to before ># the log is rolled. Size is specified in bytes. The default value ># of 0, disables log rolling. May abbreviate with the 'k' (kb) or ># 'm' (mb) suffix. For example: 10m = 10 megabytes. >wrapper.logfile.maxsize=0 > ># Maximum number of rolled log files which will be allowed before old ># files are deleted. The default value of 0 implies no limit. >wrapper.logfile.maxfiles=0 > ># Log Level for sys/event log output. (See docs for log levels) >wrapper.syslog.loglevel=DEBUG > >#******************************************************************** ># Wrapper Windows Properties >#******************************************************************** ># Title to use when running as a console >wrapper.console.title=RuffaloCODY One Web Application Ryerson > >#******************************************************************** ># Wrapper Windows NT/2000/XP Service Properties >#******************************************************************** ># WARNING - Do not modify any of these properties when an application ># using this configuration file has been installed as a service. ># Please uninstall the service before modifying this section. The ># service can then be reinstalled. > ># Name of the service >wrapper.ntservice.name=OneWebAppRyerson > ># Display name of the service >wrapper.ntservice.displayname=RuffaloCODY One Web Application Ryerson > ># Description of the service >wrapper.ntservice.description=Runs the RuffaloCODY One Web Application >Ryerson on JBoss > ># Service dependencies. Add dependencies as needed starting from 1 >wrapper.ntservice.dependency.1= > ># Mode in which the service is installed. AUTO_START or DEMAND_START >wrapper.ntservice.starttype=AUTO_START > ># Priority at which the service is run. NORMAL, LOW, HIGH, or ># REALTIME >wrapper.ntservice.process_priority=NORMAL > ># Allow the service to interact with the desktop. >wrapper.ntservice.interactive=false > > > > >thanks, > >Tony Awbrey > >RuffaloCODY, LLC. >Phone: 319.730.2480 >Fax: 319.362.7457 > >Address: 65 Kirkwood North Road SW > Cedar Rapids, IA 52404 > >IBM Certified Specialist -- > iSeries Technical Solutions Design V4R5 > iSeries Solution Sales V5R3 --------------------------------------------------------------------- Gil Adam ga...@in... Extension: 430 Instant Messenger: AnswerGil |