Clarity

 View Only
  • 1.  bg service is not starting and all job and processes are stucked

    Posted Oct 19, 2020 02:46 AM
    ​Hello,
    We have a issue our bg service is not starting after we migrate to 15.7.
     Launching a JVM...
     Error occurred during initialization of VM
     Too small initial heap
     JVM exited while loading the application.

    Anyone is facing this issue before ?

    Many thanks.
    Karim


  • 2.  RE: bg service is not starting and all job and processes are stucked

    Broadcom Employee
    Posted Oct 19, 2020 02:56 AM
    What is the JVM allocation of BG, Can we see the properties.xml and bg.ca and bg sytem logs

    ------------------------------
    Thanks & Regards
    Suman Pramanik
    Sr. Principal Support Engineer | Customer Success & Support, Enterprise Software Division
    Broadcom
    ------------------------------



  • 3.  RE: bg service is not starting and all job and processes are stucked

    Posted Oct 19, 2020 03:21 AM
    ​Hello,
    here is the JVM allocation :
     <backgroundServer jvmParameters="-Xms512 -Xmx2048m -XX:-UseGCOverheadLimit -DforceMemorySettings=false -XX:MaxMetaspaceSize=300m" programParameters=""/>

    do you know a way to upload the log file here i could not upload them ?
    Here is my properties file
    <?xml version="1.0" encoding="UTF-8"?>
    <properties>
      <directories installDir="C:\Clarity">
        <directoriesInstance id="sharedDir" path=""/>
      </directories>
      <files>
        <filesInstance id="app" descriptorFile="descriptor.xml" i18nFile="i18n.xml" cachesFile="caches.xml" componentsFile="components.xml" aliasFile="alias.xml"/>
        <filesInstance id="nsa" descriptorFile="descriptor.xml" i18nFile="i18n.xml" cachesFile="caches.xml" componentsFile="nsa-components.xml" aliasFile="nsa-alias.xml"/>
      </files>
      <system online="true" licenseTypes="new" singleTenantMode="true" configurationUpdateFrequencySeconds="0" configurationHealthcheckFrequencySeconds="0" environment="OP"/>
      <os user="" group="" dbUser="" dbGroup="" rootUser="" commandPrefix=""/>
      <java home="C:\Java\jdk-11.0.5+10" vm="server" preferIpv4Stack="true"/>
      <applicationServer vendor="tomcat" useLdap="false" home="C:\Tomcat" adminPassword="admin" externalUrl="" tokenCacheCapacity="0" tokenCacheStrategy="none" disableApiAccess="false" notifyThreadPool="20">
        <applicationServerInstance id="app" serviceName="CA PPM App Server" rmiPort="23791" jvmParameters="-Xms2048m -Xmx4096m -XX:-UseGCOverheadLimit -DforceMemorySettings=false -XX:MaxMetaspaceSize=512m" maxThreads="1000" programParameters="" distributed="false" cacheDistributedSession="false" runJobScheduler="false" useSSO="false" maxConcurrentJobs="10" runProcessEngine="false" messageTimeToLive="120" messageReceiverInterval="5" exceptionRunInterval="normal" serviceUser="" servicePassword="" autoStartService="true">
          <war context="pm" name="ppm-ux" enable="true"/>
        </applicationServerInstance>
        <applicationServerInstance id="nsa" serviceName="CA PPM System Admin Server" rmiPort="23792" jvmParameters="-Xms1024m -Xmx4096m -XX:-UseGCOverheadLimit -DforceMemorySettings=false" programParameters="" distributed="false" cacheDistributedSession="false" runJobScheduler="false" useSSO="false" maxConcurrentJobs="0" runProcessEngine="false" messageTimeToLive="0" messageReceiverInterval="0" exceptionRunInterval="" serviceUser="" servicePassword="" autoStartService="true"/>
      </applicationServer>
      <webServer schedulerUrl="" capaUrl="" sessionTimeout="" tenantTimeout="1440" sslType="implied">
        <webServerInstance id="app" entryUrl="http://clarityprd" sslEntryUrl="https://clarityprd:8043" port="80" enablePort="true" sslPort="8043" enableSSLPort="false" address="" connectorPort="8009" connectorAddress="" context="/niku" documentRoot="" useHttpOnlySessionCookie="false" useSecureSessionCookie="false" restContext="/ppm"/>
        <webServerInstance id="nsa" entryUrl="http://clarityprd:8090" sslEntryUrl="https://clarityprd:8093" port="8090" enablePort="true" sslPort="8093" enableSSLPort="false" address="" connectorPort="8109" connectorAddress="" context="/niku" documentRoot="" useHttpOnlySessionCookie="false" useSecureSessionCookie="false" restContext=""/>
      </webServer>
      <ssl keystore=""/>
      <logger alternateDirectory="" dynamicConfigurationEnabled="false" traceEnabled="true" traceJobs="false" traceProcessEngine="false" traceXog="false" traceAlarmThresholdSeconds="-1" multitenantErrorReportingEnabled="false" processEnginePersistenceLogLevel="Error"/>
      <databaseServer vendor="mssql" home="/oracle/home" sysPassword="change_on_install" largeTables="USERS_LARGE" smallTables="USERS_SMALL" largeIndex="INDX_LARGE" smallIndex="INDX_SMALL" highVolatilityParameters="PCTFREE 20 PCTUSED 60" lowVolatilityParameters="PCTFREE 5 PCTUSED 80" fetchSize="60"/>
      <database id="Niku" useURL="false" jndiDatabaseId="jdbc/NikuDS" vendor="mssql" serviceName="niku" serviceId="niku" instanceName="sqlinst01" driver="com.ca.clarity.jdbc.sqlserver.SQLServerDriver" url="jdbc:clarity:sqlserver://sql14prd05:1533;DatabaseName=niku;InsensitiveResultSetBufferSize=0;ProgramName=Clarity;DateTimeInputParameterType=dateTime" host="sql14prd05" username="niku" password="niku_321" schemaName="niku" upgradeStatus="upgradeNotNeeded"/>
      <dwhDatabaseServer vendor="mssql" sysPassword="change_on_install" dimensionTables="DWH_PPM_DATA_DIM" factTables="DWH_PPM_DATA_FACT" dimensionIndex="DWH_PPM_INDX_DIM" factIndex="DWH_PPM_INDX_FACT" fetchSize="240">
        <database id="Datawarehouse" useURL="false" jndiDatabaseId="jdbc/DatawarehouseDS" vendor="mssql" serviceName="ppm_dwh" serviceId="ppm_dwh" instanceName="sqlinst01" driver="com.ca.clarity.jdbc.sqlserver.SQLServerDriver" url="jdbc:clarity:sqlserver://sql14prd05:1533;DatabaseName=ppm_dwh;InsensitiveResultSetBufferSize=0;ProgramName=Clarity;DateTimeInputParameterType=dateTime" host="sql14prd05" username="ppm_dwh" password="ppm_321" schemaName="ppm_dwh" clarityDBLink="PPMDBLINK" isCustomDBLink="false" upgradeStatus="upgradeNotNeeded"/>
      </dwhDatabaseServer>
      <searchServer indexDir="C:/ca/ppm/searchindex" useSynchronousIndexing="true" filestoreDir="C:/ca/ppm/filestore" storeFilesInDatabase="false"/>
      <documentServer fileScanningExec="" fileSizeLimit="0" fileStoreDirSize="0"/>
      <reportServer id="jaspersoft" webUrl="http://clarityprd:8080/reportservice" context="/reportservice" home="" serviceUrl="http://localhost:8000" volumeName="" username="ppmjasperadmin" vendor="jaspersoft" databaseId="Niku" jndiName="jdbc/clarity" dwJndiName="jdbc/dwh" orgName="Lombard" orgId="Lombard"/>
      <directoryServer className="com.niku.security.directory.LDAPDirectoryService" serviceProvider="com.sun.jndi.ldap.LdapCtxFactory" url="ldap://localhost:389" rootContext="ou=People,dc=ppm,dc=com" adminUser="admin" adminCredential="admin" objectClass="Person" searchFilter="(employeetype=ppm)" dateTimeFormat="yyyyMMddHHmmss" groupDN="" groupIdentifierOnUser="memberOf" allowNonLDAPUsers="false" testMode="false" groupIdentifier="uniquemember" pageSize="1000">
        <userAttributes>
          <userName name="uid"/>
          <firstName name="givenName"/>
          <lastName name="sn"/>
          <fullName name="cn"/>
          <emailAddress name="mail"/>
          <modifyTimeStamp name="modifyTimeStamp"/>
        </userAttributes>
      </directoryServer>
      <sso tokenName="AUTH_TOKEN" tokenType="cookie" logoutURL="http://www.ca.com" errorURL="http://www.ca.com"/>
      <mailServer host="smtpin.biz.lodh.com" username="" password="" fromAddress="" sendProtocol="smtp" fetchProtocol="imap" defaultSenderAddress="CAPPM_Notification@lombardodier.com" useAuthentication="false"/>
      <backgroundServer jvmParameters="-Xms512 -Xmx2048m -XX:-UseGCOverheadLimit -DforceMemorySettings=false -XX:MaxMetaspaceSize=300m" programParameters=""/>
      <jobSchedulerServer>
        <jobSchedulerInstance id="bg" serviceName="CA PPM Background Server" runJobScheduler="true" maxConcurrentJobs="10" runProcessEngine="true" messageTimeToLive="120" messageReceiverInterval="5" exceptionRunInterval="normal" serviceUser="" servicePassword="" autoStartService="true" maxThreadsForParallelProcessor="10"/>
        <jobSchedulerInstance id="bg2" serviceName="CA PPM Background Server 2" runJobScheduler="true" maxConcurrentJobs="10" runProcessEngine="true" messageTimeToLive="120" messageReceiverInterval="5" exceptionRunInterval="normal" serviceUser="" servicePassword="" autoStartService="true" maxThreadsForParallelProcessor="10"/>
      </jobSchedulerServer>
      <nsa bindAddress="" multicastAddress="230.0.0.1" multicastPort="9090" clientPort="9091" serviceName="CA PPM Beacon" serviceUser="" servicePassword="" autoStartService="true"/>
      <encryption encryptPasswords="false" fipsModeEnabled="false" scheme="AES" useSystemKey="true" useGlobalSalt="false" globalSalt="" file=""/>
      <systemLogging maxfiles="5" maxsize="5"/>
      <processEngineMonitorConfig disable="false" numberOfThreads="1" appId="app">
        <processEngineMonitorTask name="bpmMonitorLoopDetector" className="com.niku.bpm.utilities.BpmProcessMonitorLoopDetector" initialDelay="60" period="60" disable="false">
          <taskItems>
            <taskItem name="putOnHold" value="true" dataType="boolean"/>
            <taskItem name="sendNotification" value="true" dataType="boolean"/>
            <taskItem name="abortInstances" value="true" dataType="boolean"/>
            <taskItem name="timeThreshold" value="1" dataType="int"/>
            <taskItem name="loopLimit" value="100" dataType="int"/>
            <taskItem name="processExceptionList" value="" dataType="string"/>
          </taskItems>
        </processEngineMonitorTask>
        <processEngineMonitorTask name="bpmMonitorStormDetector" className="com.niku.bpm.utilities.BpmProcessMonitorStormDetector" initialDelay="60" period="60" disable="false">
          <taskItems>
            <taskItem name="putOnHold" value="true" dataType="boolean"/>
            <taskItem name="sendNotification" value="true" dataType="boolean"/>
            <taskItem name="timeThreshold" value="1" dataType="int"/>
            <taskItem name="processLimit" value="100" dataType="int"/>
            <taskItem name="processExceptionList" value="" dataType="string"/>
          </taskItems>
        </processEngineMonitorTask>
      </processEngineMonitorConfig>
      <accessToServerStatus allow=""/>
      <etl vendor="pentaho" kettleLogLevel="Minimal" etlJobTimeout="600"/>
    </properties>


    Regards,
    Karim



  • 4.  RE: bg service is not starting and all job and processes are stucked

    Posted Oct 19, 2020 08:54 AM
    Hello folks,

    Any updates?

    Regards,
    Karim​


  • 5.  RE: bg service is not starting and all job and processes are stucked

    Posted Oct 20, 2020 08:07 AM
    Yes, you have a typo in your JVM parameters for the bg service.
    -Xms512 -Xmx2048m -XX:-UseGCOverheadLimit -DforceMemorySettings=false -XX:MaxMetaspaceSize=300m
    Without the 'm' on the end, that's asking for only 512 bytes, which is lower than the minimum required to start a JVM.

    Try:
    -Xms512m -Xmx2048m -XX:-UseGCOverheadLimit -DforceMemorySettings=false -XX:MaxMetaspaceSize=300m