New install CPU usage

Issues during installation and related to database
Post Reply
lytledd
Posts: 1
Joined: Wed Jul 05, 2017 1:04 pm

New install CPU usage

Post by lytledd » Tue Jul 03, 2018 2:58 pm

I've recently installed both the document server and community server on one Ubuntu 16.04.4 virtual machine going with .deb installation. Provided it 4GB memory and 4 cores.

Everything seems to be working okay, but have noted, with the system idle, that it's pegging at 3.5GHZ. Is this to be expected?

Otherwise, the system is very responsive.

Thanks!

Doug
Attachments
cpu_usage.png
CPU usage screen shot
cpu_usage.png (46.01 KiB) Viewed 1398 times

Maxim
Posts: 2017
Joined: Tue Oct 11, 2016 2:34 pm

Re: New install CPU usage

Post by Maxim » Thu Jul 05, 2018 8:57 am

Hello!
Is this to be expected?
I suppose yes...

StephanW
Posts: 5
Joined: Mon Feb 20, 2017 9:22 pm

Re: New install CPU usage

Post by StephanW » Wed Nov 28, 2018 10:17 pm

I am seeing the same kind of behaviour. When I start top I quick see the following:

Code: Select all

top - 21:52:12 up 1 min,  1 user,  load average: 1.98, 1.89, 1.89
Tasks:  55 total,   2 running,  53 sleeping,   0 stopped,   0 zombie
%Cpu(s):  5.6 us,  2.3 sy,  0.0 ni, 89.6 id,  2.0 wa,  0.0 hi,  0.4 si,  0.0 st
KiB Mem :  1048576 total,   662628 free,   333608 used,    52340 buff/cache
KiB Swap:  1572864 total,  1572864 free,        0 used.   714968 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 2984 onlyoff+  20   0  555404  18940  15116 R 400.0  1.8   0:00.02 /usr/bin/node /var/www/onlyoffice/documentserver/server/SpellChecker/sources/server.js
What I do see is that the PID keeps changing rapidly, which would indicate it restarts or crashes. That doesn't sound the correct way.

How can I analyse why node/server.js is crashing/restarting?

Carl
Posts: 163
Joined: Thu Apr 12, 2018 10:00 am

Re: New install CPU usage

Post by Carl » Thu Nov 29, 2018 12:14 pm

Hello StephanW,

Please specify the following:

1. OS of the server
2. Document Server version
3. Version of NodeJS installed
4. Check if there are errors in /var/log/onlyoffice/documentserver/spellchecker/

StephanW
Posts: 5
Joined: Mon Feb 20, 2017 9:22 pm

Re: New install CPU usage

Post by StephanW » Thu Nov 29, 2018 7:57 pm

1. OS of the server - Debian GNU/Linux 9 (stretch)
2. Document Server version - 5.2.3-64
3. Version of NodeJS installed - 11.3.0-1nodesource1
4. Check if there are errors in /var/log/onlyoffice/documentserver/spellchecker/

err.log shows:
Error: The module '/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun/build/Release/nodehun.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 67. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
at Object.Module._extensions..node (internal/modules/cjs/loader.js:751:18)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
at Module.require (internal/modules/cjs/loader.js:658:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/var/www/onlyoffice/documentserver/server/SpellChecker/sources/spellCheck.js:13:17)
at Module._compile (internal/modules/cjs/loader.js:722:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:733:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
internal/modules/cjs/loader.js:751
return process.dlopen(module, path.toNamespacedPath(filename));
^

out.log shows:

[2018-11-29 19:52:41.060] [WARN] nodeJS - worker 20573 died (code = 1; signal = null). restart...

When running the node command for the server.js command manually I get the following output:

root@Lenz:/etc/onlyoffice/documentserver# node /var/www/onlyoffice/documentserver/server/SpellChecker/sources/server.js
WARNING: No configurations found in configuration directory:/etc/onlyoffice/documentserver/config
WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment.
/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/config/lib/config.js:203
throw new Error('Configuration property "' + property + '" is not defined');
^

Error: Configuration property "SpellChecker" is not defined
at Config.get (/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/config/lib/config.js:203:11)
at Object.<anonymous> (/var/www/onlyoffice/documentserver/server/SpellChecker/sources/server.js:12:34)
at Module._compile (internal/modules/cjs/loader.js:722:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:733:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:775:12)
at startup (internal/bootstrap/node.js:300:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:826:3)

When checking the /etc/onlyoffice/documentserver/default.json file it is as the original on github.

Carl
Posts: 163
Joined: Thu Apr 12, 2018 10:00 am

Re: New install CPU usage

Post by Carl » Mon Dec 03, 2018 8:30 am

Hello StephanW,
3. Version of NodeJS installed - 11.3.0-1nodesource1
This is the reason of the issue. NodeJS version required for Document Server's functioning is 8.x. Please install it and check if the issue persists. If there is no possibility to downgrade NodeJS, please use the docker installation of DS instead.

StephanW
Posts: 5
Joined: Mon Feb 20, 2017 9:22 pm

Re: New install CPU usage

Post by StephanW » Mon Dec 03, 2018 10:18 pm

Thank you, that did solve the issue, after I downgraded to the 8.x release.

I guess when I read "Document Server uses Node.js (version 8.12.0 or later)" on the https://helpcenter.onlyoffice.com/serve ... ation.aspx page, it meant that I could use the latest version. I didn't know it had to be from the 8.x branch.

Carl
Posts: 163
Joined: Thu Apr 12, 2018 10:00 am

Re: New install CPU usage

Post by Carl » Wed Dec 05, 2018 10:33 am

Hello StephanW,

I'm glad this helped. I have informed responsible people, we will change the information regarding nodeJS version in the instruction.

Post Reply