Project

General

Profile

Revision 929a8c09

ID929a8c09d30e762bddf4da0fa029ddb3db80e91f
Parent 439d9913
Child 24841ac2

Added by Andreas Kohlbecker over 7 years ago

refactoring in preparation for #3471 (cdmlib-remote-webapp instances can be stopped / started individually)

View differences:

src/main/webapp/manage/MemoryService.jsp
1
<%@page import="eu.etaxonomy.cdm.server.AssumedMemoryRequirements"%>
1 2
<%@page import="org.codehaus.jackson.node.JsonNodeFactory"
2 3
%><%@page import="org.codehaus.jackson.node.ArrayNode"
3 4
%><%@ page contentType="application/json;charset=UTF-8" language="java"
......
16 17
    //the servelt context must use the class loader of the Bootloader class otherwise
17 18
    //getting the status will not work in mulithreading environments !!!
18 19
    Bootloader bootloader = Bootloader.getBootloader();
19
    long recommendedMinimumHeap = bootloader.recommendedMinimumSpace(Bootloader.HEAP_CDMSERVER, Bootloader.HEAP_PER_INSTANCE, null);
20
    long recommendedMinimumPermGenSpace = bootloader.recommendedMinimumSpace(Bootloader.PERM_GEN_SPACE_CDMSERVER, Bootloader.PERM_GEN_SPACE_PER_INSTANCE, null);
20
    long recommendedMinimumHeap = bootloader.getInstanceManager().recommendedMinimumSpace(AssumedMemoryRequirements.HEAP_CDMSERVER, AssumedMemoryRequirements.HEAP_PER_INSTANCE, null);
21
    long recommendedMinimumPermGenSpace = bootloader.getInstanceManager().recommendedMinimumSpace(AssumedMemoryRequirements.PERM_GEN_SPACE_CDMSERVER, AssumedMemoryRequirements.PERM_GEN_SPACE_PER_INSTANCE, null);
21 22

  
22 23
    ObjectMapper jsonMapper = new ObjectMapper();
23 24

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)