In case your Jenkins CI fails to complete building your project but only logging the following: ERROR: Maven JVM terminated unexpectedly with exit code 137 It means maven does NOT have enough memory available. To solve this, simply increase your MAVEN_OPTS memory. Or you may need to increase your system's memory. This is very likely if you run your Jenkins on a virtual machine and you are stingy of memory.
The lsof command is available only to root. Anyway, if you want to run it as a normal user, you can specify its full path: $ /usr/sbin/lsof /path/to/some/file Or $ sudo -i lsof /path/to/some/file Or else: sudo dnf install lsof Or sudo yum install lsof
'Creating sort index' is the database figuring out the order of the returned values based on ‘order by’ clause. Main resources limit here would be available CPU and memory. The sort won't be done until the data is already all in memory if the result is small. Adding suitable index could make the query faster.
Comments