Settings Java heap memory

212 views
Skip to first unread message

Parthasarathi Mukhopadhyay

unread,
Jun 8, 2022, 9:30:56 AM6/8/22
to vocbench-user
Dear all

By following the system guide of VocBench, I set the following values inside /vocbench3-10.2.1-full/semanticturkey-10.2.1/bin/setenv file (am using an i7 processor based machine with 16 GB RAM and 64 bit Ubuntu LTS 22.04):

export GDB_MAX_MEM=6144M
export GDB_MIN_MEM=2048M
export JAVA_MAX_MEM=2048M
export JAVA_MIN_MEM=256M

This settings worked for me in an earlier occasion of importing the entire Agrovoc, but today reported an out of memory error when I attempted to import MeSH (2.3 GB NT file).

Am I using the right place / file to set  the heap memory? If yes, what should be the right size in the above stated configuration?

Regards

Parthasarathi Mukhopadhyay

Professor, Department of Library and Information Science,

University of Kalyani, Kalyani - 741 235 (WB), India


Armando Stellato

unread,
Jun 8, 2022, 10:10:06 AM6/8/22
to Parthasarathi Mukhopadhyay, vocbench-user

Dear Parthasarathi,

 

could you provide us a description of the configuration of your project?

 

For instance, I’m assuming that you are really using GraphDB for loading MeSH, so using a remote project, using the GraphDB sail (free or SE depends on the license you are using) etc..

 

Could you verify this? I suppose 6Gb given to GDB even for that amount (2.3Gb) should be enough. In negative case, you could try raising GDB’s heap to 8 or 10, but I don’t really think they are necessary

 

Kind Regards,

 

Armando

 

--
You received this message because you are subscribed to the Google Groups "vocbench-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vocbench-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vocbench-user/CAGM_5uaudWbjmCniQe6N%2Bj1wObFGZtZtTrmVOLYgwdePzFbK7g%40mail.gmail.com.

Parthasarathi Mukhopadhyay

unread,
Jun 9, 2022, 5:36:04 AM6/9/22
to vocbench-user
Thanks Armando.

I'm using GraphDB free version (graphdb-free-9.8.1) at the backend and using CreateRemote function of VocBench.

The other things that may be important

1. I set skos for both model and lexicalization for MeSH.
2.  It is producing error like this (we again performed it to report here the exact message) at GraphDB end -

[INFO ] 2022-06-09 02:07:07,986 [repositories/MeSH_core | o.e.r.h.s.r.t.TransactionController] PUT txn operation request finished.
[INFO ] 2022-06-09 02:07:07,988 [repositories/MeSH_core | o.e.r.h.s.r.t.TransactionController] PUT txn query request
[WARN ] 2022-06-09 02:17:38,098 [repositories/MeSH_core | o.e.r.h.s.r.t.ActiveTransactionRegistry] deregistered expired transaction 3bd45905-8af9-4525-8f98-302481aa7912
[WARN ] 2022-06-09 02:17:38,098 [repositories/MeSH_core | o.e.r.h.s.r.t.ActiveTransactionRegistry] deregistered expired transaction cd2e640e-81a5-4706-a6d9-191d8c7b51ad
[WARN ] 2022-06-09 02:17:38,098 [repositories/MeSH_core | o.e.r.h.s.r.t.ActiveTransactionRegistry] deregistered expired transaction af079a03-f7ef-4a01-a94b-34c70aec309f
java.lang.OutOfMemoryError: Java heap space
Dumping heap to /home/roshni/graphdb-free-9.8.1/heapdump.hprof ...
Heap dump file created [5191852875 bytes in 24.345 secs]
#
# java.lang.OutOfMemoryError: Java heap space
# -XX:OnOutOfMemoryError="kill -9 %p"
#   Executing /bin/sh -c "kill -9 29395"...
Killed

3. And a connection refused error at the VocBench end -

org.apache.http.conn.HttpHostConnectException: Connect to localhost:7200 [localhost/127.0.0.1] failed: Connection refused (Connection refused)
A check of heap memory shows  (I think my heap memory statements are not honoured at all) -

$ jps -l

29395 com.ontotext.graphdb.server.GraphDBWorkbench
40021 org.apache.karaf.main.Main
41627 jdk.jcmd/sun.tools.jps.Jps

$ jstat -gc 40021
 S0C    S1C    S0U    S1U      EC       EU        OC         OU       MC     MU    CCSC   CCSU   YGC     YGCT    FGC    FGCT    CGC    CGCT     GCT  
423936.0 440320.0  0.0    0.0   465408.0 286227.5  589312.0   220325.9  116736.0 105830.9 16640.0 13756.5     27    1.534   5      0.722   -          -    2.256


Plz guide and let me know if any other info is needed ...

Regards

Roland Wingerter

unread,
Jun 9, 2022, 12:52:17 PM6/9/22
to vocbench-user
Hi,

for running Java 8 / Java 11 concurrently check out this message by Armando:

Kind regards
Roland
Reply all
Reply to author
Forward
0 new messages