Skip to Content
avatar image
Former Member

Reducing Memory used by Web AS 6.40 SP10

Hi,

I'm trying to find information on how to tune SAP Web AS 6.40 SP10 to use less memory. My development laptop (running the SQL Server version of Web AS and EP) has 1 GB of memory and SAP Web AS and EP are using too much memory causing the system to swap. I've tried changing the Heap Size in Visual Administrator but it doesn't seem to limit the memory used. I've configured SQL Server to use a maximum of 150 MB of memory but I can't seem to alter the amount of memory used by SAP We AS. Has anyone had success limiting the amount of memory used by Web AS to prevent swapping on a development system? Thanks in advance for any help you can provide. The max heap size for the server is set to 256 MB and I've included the additional parameters set for the server below:

-Djava.security.policy=./java.policy

-Djava.security.egd=file:/dev/urandom

-Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy

-Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy

-Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy

-Xms192m

-XX:NewSize=32m

-XX:MaxNewSize=64m

-XX:PermSize=64m

-XX:MaxPermSize=192m

-verbose:gc

-XX:+DisableExplicitGC

-XX:SoftRefLRUPolicyMSPerMB=1

-XX:+UseParNewGC

-XX:SurvivorRatio=2

-XX:TargetSurvivorRatio=90

-Dorg.omg.PortableInterceptor.ORBInitializerClass.com.sap.engine.services.ts.jts.ots.PortableInterceptor.JTSInitializer

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 11, 2005 at 03:52 AM

    Hi Jason,

    In order to manage Memory you have to Install Sherlok's memory management.

    To know more abt installation and memory management follow this link

    https://www.sdn.sap.com/sdn/index.sdn?page=community_sdn_downloads.htm

    hope this solved your problem

    Regards,

    RK

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 16, 2005 at 09:03 AM

    Hi Jason,

    Success depends on how much memory you intend to reserve for the Engine. You can try with -Xms128M, but keep in mind that NewSize should be 1/6 of the heap. If some other process occupies half of the memory, it is going to swap at the moment you run an IDE.

    You may also check the memory of the dispatcher and configure -Xms32M .

    I guess you can also check the memory consumption of the database.

    Sherlok is a tool for profiling. It is good when developing/optimizing but is of no use for administrative tasks like this one.

    Best Regards: Iavor

    Add comment
    10|10000 characters needed characters exceeded