cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynatrace server service stopped automatically

fouad_elhassnao
Newcomer

Hi All,

I migrated dynatrace 7.0 to a new VM but i noticed that the dynatrace service stops automatically. Looking in the logs i have thise error :

2018-04-10 17:19:06 [000000f0] info [native] Dynatrace Server version: 7.0.0.2469 - built 2017-05-30 13:45:26 +0200
2018-04-10 17:19:06 [000000f0] info [native] Initializing service "Dynatrace Server 7.0"...
2018-04-10 17:19:06 [000000f0] info [native] Launcher configuration summary for Dynatrace Server:
2018-04-10 17:19:06 [000000f0] info [native] Launcher: D:\Dynatrace 7.0\dtserver.exe
2018-04-10 17:19:06 [000000f0] info [native] Java VM: D:\Dynatrace 7.0\jre\bin\java.exe
2018-04-10 17:19:06 [000000f0] info [native] Java version: 1.8.0_121 64-Bit
2018-04-10 17:19:06 [000000f0] info [native] Startup jar: D:\Dynatrace 7.0\server\plugins\org.eclipse.equinox.launcher_1.2.0.v20110502.jar
2018-04-10 17:19:06 [000000f0] info [native] Working directory: D:\Dynatrace 7.0\server
2018-04-10 17:19:06 [000000f0] info [native] Configuration file: D:\Dynatrace 7.0\dtserver.ini
2018-04-10 17:19:06 [000000f0] info [native] Pid file: C:\Windows\SERVIC~2\LOCALS~1\AppData\Local\Temp\dtserver.pid
2018-04-10 17:19:06 [000000f0] info [native] Native watchdog enabled, port: 50003, timeout: 180 sec (timeout for graceful shutdown: 300 sec)
2018-04-10 17:19:06 [000000f0] info [native] Process created successfully, pid: 2696
2018-04-10 17:19:16 [00000150] info [java ] ServerHelperAgent loaded
2018-04-10 17:19:16 [00000150] info [java ] #
2018-04-10 17:19:16 [00000150] info [java ] # There is insufficient memory for the Java Runtime Environment to continue.
2018-04-10 17:19:16 [00000150] info [java ] # Native memory allocation (mmap) failed to map 15032385536 bytes for Failed to commit area from 0x0000000440000000 to 0x00000007c0000000 of length 15032385536.
2018-04-10 17:19:16 [00000150] info [java ] # An error report file with more information is saved as:
2018-04-10 17:19:16 [00000150] info [java ] # D:\Dynatrace 7.0\server\hs_err_pid2696.log
2018-04-10 17:19:16 [00000148] severe [java ] Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000440000000, 15032385536, 0) failed; error='The paging file is too small for this operation to complete' (DOS error/errno=1455)
2018-04-10 17:19:16 [000000f0] info [native] Process 2696 terminated, exitcode: 1

I tried to change version of java and increase the memory size but it ddoes not solve the problem.

Someone would have an idea for solving this problem?

Thank you.

5 REPLIES 5

adam_gardner
Dynatrace Champion
Dynatrace Champion

Hi Fouad, you don't mention how much memory your server had / has so it's impossible to help further.

Please ensure your server meets the system requirements for the size of your deployment: https://www.dynatrace.com/support/doc/appmon/insta...

Feel free to provide additional info (how many agents / what server sizing have you selected / exactly what resources does your server have) and I'll try and help...

fouad_elhassnao
Newcomer

Hi Adam,

Thank you for the answer.

I have 60 agents, when i try to connect DT client, the service of dynatrace server stops automatically.

Bellow configuration of my VM :

Bellox configuration of my dtserver.ini

# WARNING:
# Manual changes in this file, except changes that are related to memory allocation, may cause severe problems and system instability.
# Apply manual changes only if you have explicit instructions from dynaTrace Support.
# Since version 6.0 '-Xmx' and '-Xms' VM arguments are ignored. Please use the '-memory' parameter instead.
#
-basedir
server
-restartonfailure
-memory
xlarge
-sizing
medium
-vmargs
-XX:+UseG1GC
-XX:MaxGCPauseMillis=3500
-XX:+DisableExplicitGC
-XX:+UnlockExperimentalVMOptions
-XX:G1OldCSetRegionThresholdPercent=20
-XX:G1MixedGCLiveThresholdPercent=60
-XX:G1NewSizePercent=15
-XX:CompileCommand=exclude,java/io/ObjectInputStream.readO*
-Djava.endorsed.dirs=lib/endorsed
-Djava.awt.headless=true
-Dosgi.configuration.area=osgi
-Dosgi.checkConfiguration=true
-Dosgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@2:start, org.eclipse.equinox.event@3:start, com.dynatrace.diagnostics.rootpathcorrelation@4:start, com.dynatrace.diagnostics.subpathcorrelation@4:start, analysisstream-elasticsearch@4:start, com.dynatrace.diagnostics.serverbootstrap.jar@5:start, org.eclipse.equinox.ds@start
-Declipse.ignoreApp=true
-Dosgi.noShutdown=true
-Djava.util.logging.manager=com.dynatrace.diagnostics.util.modern.logging.BackendServerLogManager
-Dorg.osgi.framework.language=en
-Dosgi.framework.extensions=com.dynatrace.diagnostics.bootstrap.hook
-Dosgi.nl=en_US
-Dosgi.nl.user=en_US
-Duser.country=US
-Duser.language=en
-DproxyHost=
-DproxyPort=
-Dhttp.proxyUser=
-Dhttp.proxyPassword=
-Dcom.dynatrace.diagnostics.completenessTimeout=3600
-Dcom.dynatrace.diagnostics.includePrimaryGroupForLDAPActiveDirectory=false
-Dcom.dynatrace.diagnostics.strictLDAPAuthentication=false
-server
-Xrs
-agentpath:./selfmonitoring/agent/lib64/dtagent.dll=agentname=DT_Server,server=localhost:9999,wait=5

Your memory settings are set to utilize an Extra Large server or 32 GB of RAM in your system, your VM only has 16 available to it. I would either increase the VM to have it properly sized or change the memory portion to small to get the server to at least start.

HTH,

Kyle

stefan_moschins
Dynatrace Guide
Dynatrace Guide

"The paging file is too small for this operation to complete" indicates that you need to increase the memory reserved for the Paging File. For a how-to see this page: https://blogs.technet.microsoft.com/danstolts/2013/01/how-to-change-the-size-of-virtual-memory-pagefile-sys-on-windows-8-or-windows-server-2012/

fouad_elhassnao
Newcomer

Hi all,

Thank you for your answers. I increased the memory 16GB ==>32GB and everything works normally.