[Spacewalk-list] Java heap space

Ezequiel Sozzi sozeze at gmail.com
Tue Apr 10 19:35:22 UTC 2018


Hello,

I'm currently having a problem with taskomatic. while is trying to generate
the reporsitory metadata for my repository 'rh6-x86_64-os' I'm getting the
following error:

rhn_taskomatic_daemon.log

INFO   | jvm 1    | 2018/04/10 14:52:15 | 2018-04-10 14:52:15,756
[Thread-53] INFO  com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter -
Generating new repository metadata for channel 'rh6-x86_64-os'(sha1) 28664
packages, 4902 errata

INFO   | jvm 1    | 2018/04/10 15:00:28 | Exception in thread "Thread-53"
java.lang.OutOfMemoryError: Java heap space
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
org.postgresql.util.PGbytea.toBytesHexEscaped(PGbytea.java:40)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
org.postgresql.util.PGbytea.toBytes(PGbytea.java:35)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
org.postgresql.jdbc2.AbstractJdbc2ResultSet.getBytes(AbstractJdbc2ResultSet.java:2433)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
org.postgresql.jdbc2.AbstractJdbc2ResultSet.internalGetObject(AbstractJdbc2ResultSet.java:165)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
org.postgresql.jdbc3.AbstractJdbc3ResultSet.internalGetObject(AbstractJdbc3ResultSet.java:36)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
org.postgresql.jdbc4.AbstractJdbc4ResultSet.internalGetObject(AbstractJdbc4ResultSet.java:296)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
org.postgresql.jdbc2.AbstractJdbc2ResultSet.getObject(AbstractJdbc2ResultSet.java:2703)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
org.postgresql.jdbc2.AbstractJdbc2ResultSet.getObject(AbstractJdbc2ResultSet.java:2715)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
com.mchange.v2.c3p0.impl.NewProxyResultSet.getObject(NewProxyResultSet.java:4303)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
com.redhat.rhn.common.db.datasource.CachedStatement.getObject(CachedStatement.java:732)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
com.redhat.rhn.common.db.datasource.CachedStatement.addToObject(CachedStatement.java:715)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
com.redhat.rhn.common.db.datasource.CachedStatement.processResultSet(CachedStatement.java:570)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
com.redhat.rhn.common.db.datasource.CachedStatement.execute(CachedStatement.java:420)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
com.redhat.rhn.common.db.datasource.CachedStatement.executeElaboratorBatch(CachedStatement.java:346)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
com.redhat.rhn.common.db.datasource.CachedStatement.executeElaboratorBatch(CachedStatement.java:373)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
com.redhat.rhn.common.db.datasource.CachedStatement.executeElaborator(CachedStatement.java:325)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
com.redhat.rhn.common.db.datasource.SelectMode.elaborate(SelectMode.java:130)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
com.redhat.rhn.common.db.datasource.DataResult.elaborate(DataResult.java:159)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
com.redhat.rhn.taskomatic.task.repomd.RpmRepositoryWriter.writeRepomdFiles(RpmRepositoryWriter.java:185)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
com.redhat.rhn.taskomatic.task.repomd.ChannelRepodataWorker.run(ChannelRepodataWorker.java:104)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
INFO   | jvm 1    | 2018/04/10 15:00:28 |       at
java.lang.Thread.run(Thread.java:748)

I have extended the memory parameter in the /etc/sysconfig/tomcat file from
256 to 1024

JAVA_OPTS="-ea -Xms1024m -Xmx1024m -Djava.awt.headless=true
-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser
-Dorg.apache.tomcat.util.http.Parameters.MAX_COUNT=1024 -XX:MaxNewSize=256
-XX:-UseConcMarkSweepGC -Dnet.sf.ehcache.skipUpdateCheck=true"

Also I have added the option tasomatic.maxmemory = 4096 to the file
/etc/rhn/rhn.conf but the problem persist.

Any Ideas how to fix this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20180410/65fada84/attachment.htm>


More information about the Spacewalk-list mailing list