[Archivesspace_Users_Group] Limiting RAM usage by Java and AS

Majewski, Steven Dennis (sdm7g) sdm7g at eservices.virginia.edu
Tue Mar 7 16:20:41 EST 2017


I haven’t had the need to change settings, but I believe you can set any of the java options in the archivesspace.{sh,bat} scripts. And it looks like you can also change the values with unix shell environment variables: 



if [ "$ASPACE_JAVA_XMX" = "" ]; then
    ASPACE_JAVA_XMX="-Xmx1024m"
fi

if [ "$ASPACE_JAVA_XSS" = "" ]; then
    ASPACE_JAVA_XSS="-Xss2m"
fi

if [ "$ASPACE_JAVA_MAXPERMSIZE" = "" ]; then
    ASPACE_JAVA_MAXPERMSIZE="-XX:MaxPermSize=256m"
fi




> On Mar 7, 2017, at 3:57 PM, Gadsby, Eric T. <egadsby at towson.edu> wrote:
> 
> Good afternoon. Has anybody had any experience with this? We are using the standard Jetty set up. Thanks in advance for the community’s help! 
> 
> Eric T Gadsby · IT Operations Specialist
> 
> University Libraries <http://libraries.towson.edu>
> Towson University <http://www.towson.edu/> · 8000 York Road · Towson, Maryland,  21252-0001
> p. 410-704-3340
> <http://www.towson.edu/>
> 
> Confidentiality Notice: This message may contain information that is confidential, privileged, proprietary, or otherwise legally exempt from disclosure. If you are not the intended recipient, you are notified that you are not authorized to read, print, copy or disseminate this message, any part of it, or any attachments. If this message has been sent to you in error, please notify the sender by replying to this transmission, or by calling University Libraries at 410-704-3340. 
> 
> 
> 
> On 2/16/17, 3:39 PM, "archivesspace_users_group-bounces at lyralists.lyrasis.org on behalf of Gadsby, Eric T." <archivesspace_users_group-bounces at lyralists.lyrasis.org on behalf of egadsby at towson.edu> wrote:
> 
>    Dear Friends,
> 
>    We our AS install is eating up a lot of RAM as Java is known to do. I know other Java based applications I have administered sometimes have ways to limit java ram usage. Is this true for AS?  If so how does one do it. Please pardon if the question asked before. Thanks! 
> 
>    Sincerely,
> 
>    Eric T Gadsby
>    IT Operations Specialist, Cook Library
>    Towson University
>    egadsby at towson.edu
>    410-704-3340
> 
>    _______________________________________________
>    Archivesspace_Users_Group mailing list
>    Archivesspace_Users_Group at lyralists.lyrasis.org
>    http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
> 
> 
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



More information about the Archivesspace_Users_Group mailing list