SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Out of Memory Errors running Songkong Headless

java.lang.OutOfMemoryError: Java heap space
An unexpected error has occurred Java heap space on thread C3P0PooledConnectionPoolManager[identityToken->z8kfsx9x10oq92x140ofng|3a2b2322]-AdminTaskTimer, please report to support @jthink.net


Anything I should try to resolve this issue?

Can you send me your support files please (Help:Create Support Files), are you using the standard songkong.sh file or not, I wonder if you are not setting memory allocation correctly (-Xmx option)

Hi Paul!

I’m still receiving this error with the headless version when executing songkong.sh:

You have attempted to start in GUI mode but your environment does not support using the GUI

I changed my memory allocation settings as follows for songkongremote.sh:

jre64/bin/java -Xms1024m -Xmx4096m -jar lib/songkong-5.8.jar -r

…and the job completed but I wouldn’t say successfully as it did not appear to read any of the files. Since I’m no longer receiving OOM errors, should I open the processing issue in another thread (which appears to be database related after looking at the debug logs a bit more closely)?

EDIT: Deleting the database manually (not from the web UI, that simply hung), fixed the issue. Songs are matching.

Well yes songkong.sh always run in gui mode, headless install just relates tro the install. I looked at your logs and I think I think the lack of memory then corrupted the database, if Empty Database fails the best thing to do is just restart and let SongKong sort out database recreation on startup but I am glad you have now resolved it.