Mistake with starting service (OD-124)
Anatoliy Aksenov opened 6 years ago

I have the issue with starting server in my environment.

# bin/server.sh console --Xmx=1596m
Running OneDev...
--> Wrapper Started as Console
Java Service Wrapper Standard Edition 64-bit 3.5.41
  Copyright (C) 1999-2019 Tanuki Software, Ltd. All Rights Reserved.
    http://wrapper.tanukisoftware.com
  Licensed to Robin Shen for OneDev

Launching a JVM...
JVM exited while loading the application.
Invalid maximum heap size: -Xmx19231m
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Reloading Wrapper configuration...
JVM process is gone.

My Java environment:

# java -XX:+PrintFlagsFinal -version | grep -iE 'HeapSize|PermSize|ThreadStackSize'
     intx CompilerThreadStackSize                  = 512                                    {pd product} {default}
   size_t ErgoHeapSizeLimit                        = 0                                         {product} {default}
   size_t HeapSizePerGCThread                      = 33554432                                  {product} {default}
   size_t InitialHeapSize                          = 67108864                                  {product} {ergonomic}
   size_t LargePageHeapSizeThreshold               = 134217728                                 {product} {default}
   size_t MaxHeapSize                              = 1073741824                                {product} {ergonomic}
    uintx NonNMethodCodeHeapSize                   = 5541734                                {pd product} {ergonomic}
    uintx NonProfiledCodeHeapSize                  = 123058253                              {pd product} {ergonomic}
    uintx ProfiledCodeHeapSize                     = 123058253                              {pd product} {ergonomic}
     intx ThreadStackSize                          = 320                                    {pd product} {default}
     intx VMThreadStackSize                        = 512                                    {pd product} {default}
openjdk version "11.0.3" 2019-04-16 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.3+7-LTS)
OpenJDK Server VM 18.9 (build 11.0.3+7-LTS, mixed mode, sharing)

The OpenDev version is 3.1.1.

  • Robin Shen commented 6 years ago

    Please edit "conf/wrapper.conf" to change property "wrapper.java.maxmemory" as 1596m. By default it uses 60% of physical memory, and apparently that is too much for a JVM.

    Specifying -Xmx via command line does not have effect.

  • Anatoliy Aksenov commented 6 years ago

    Please edit "conf/wrapper.conf" to change property "wrapper.java.maxmemory" as 1596m

    It helped me!

  • Robin Shen changed state to 'Closed' 6 years ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Question
Priority
Minor
Assignee
Issue Votes (0)
Watchers (2)
Reference
OD-124
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover