joint-online-judge / horse

The new generation of JOJ Backend.
https://joint-online-judge.github.io/horse/
MIT License
5 stars 3 forks source link

swagger-client-codegen have bug on long schema name #111

Closed BoYanZh closed 2 years ago

BoYanZh commented 2 years ago

error:

MiB Mem :   6946.4 total,    125.2 free,   5890.3 used,    930.9 buff/cache
MiB Swap:   4096.0 total,   4095.5 free,      0.5 used.    771.9 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
   1693 runner    20   0 9070424   5.3g  20392 S 200.0  77.8   0:56.23 java

correct:

MiB Mem :   6946.4 total,   3924.6 free,    972.8 used,   2049.1 buff/cache
MiB Swap:   4096.0 total,   4096.0 free,      0.0 used.   5658.0 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
   1609 runner    20   0 9074520 511940  20012 S 193.3   7.2   0:10.95 java

openapi.json diff: https://github.com/joint-online-judge/horse/commit/921c3984f2727491029e37b92423948e2ceaa39a

BoYanZh commented 2 years ago

Can be solved by controlling the length of enum.

BoYanZh commented 2 years ago

code in yml to monitor mem usage:

                  pid=$!
                  while kill -0 $pid 2> /dev/null; do
                      top -b n1 -p $!
                      sleep 1
                  done
                  exit 0