I have uploaded about 3700 xml-files (450mb) to db. CPU usage at that time was about 100%. Is there any way to reduce the server load? May be basex has some kind of settings?
Usually the I/O usage should be higher than the CPU usage. How much RAM do you have, and how many CPUs cores are available on your system (I guess only 1 of the cores was used)?
Yes, it's test server. It has only 1 core and 500mb ram + 500mp swap.
500 mb doesn’t sound that much. It may actually be sufficient for BaseX itself, but I’m not sure how much space is occupied by other processes?
Two things to try: 1. Use our internal XML parser (see [1] for more details), 2. Add the -XX:StartFlightRecording,filename=dump.jfr flag to the BaseX JVM call and send us the dump.
Best, Christian
[1] http://docs.basex.org/wiki/Options#INTPARSE
05.07.2019, 22:03, "Christian Grün" christian.gruen@gmail.com:
I have uploaded about 3700 xml-files (450mb) to db. CPU usage at that time was about 100%. Is there any way to reduce the server load? May be basex has some kind of settings?
Usually the I/O usage should be higher than the CPU usage. How much RAM do you have, and how many CPUs cores are available on your system (I guess only 1 of the cores was used)?
-- С уважением, Ветошкин Владимир Владимирович
-- С уважением, Ветошкин Владимир Владимирович
basex-talk@mailman.uni-konstanz.de