java.lang.OutOfMemoryError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Problem with Microsoft Maps
    via mobac by fg2b
    ,
  • Out of Memory Error
    via mobac by fg2b
    ,
  • How make file system listing in Java Swing
    via by Unknown author,
  • GitHub comment 63#147513829
    via GitHub by kxra
    ,
  • After a relatively short runtime, Fisheye crashes with. I'm starting it from SMF, and this is what it looks like in ps: {noformat} root@asp1inbld001 ~ # /usr/ucb/ps awwux|grep -v grep |grep fisheye fisheye 7708 0.7 0.444207261968 ? O 14:50:42 0:05 /opt/appsrv/java/bin/java -Dfisheye.library.path= -Dfisheye.inst=/var/bldserv/fisheye -Djava.awt.headless=true -Djava.endorsed.dirs=/opt/bldserv/fisheye-1.6.6/lib/endorsed -jar /opt/bldserv/fisheye-1.6.6/fisheyeboot.jar stop --config /opt/bldserv/conf/fisheye.xml {noformat} Here's the snip from SMF's log: {noformat} [ Feb 11 14:16:25 Executing start method ("/opt/bw/svc/method/svc-fisheye start") ] [ Feb 11 14:16:25 Method "start" exited with status 0 ] INFO - FishEye 1.6.6 (build-373), Built on 2009-02-10 INFO - FishEye: Commercial License registered to omfzd.com. () INFO - Periodic polling for software updates is disabled. INFO - Server started on 127.0.0.1:28060 (ajp13) (control port on 127.0.0.1:28059) INFO - starting initial scan of repository architecture INFO - upgrading quicksearch data of repository artefacts INFO - starting initial scan of repository artefacts INFO - finished initial scan of repository architecture in 1s INFO - starting initial scan of repository omfzd ERROR: problem running command java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:105) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:38) Caused by: java.lang.OutOfMemoryError: Java heap space at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:575) at java.lang.StringBuilder.append(StringBuilder.java:204) at java.io.UnixFileSystem.resolve(UnixFileSystem.java:93) at java.io.File.<init>(File.java:179) at java.io.File.listFiles(File.java:1020) at com.cenqua.fisheye.io.IOHelper.recursiveDeleteImpl(IOHelper.java:158) at com.cenqua.fisheye.io.IOHelper.recursiveDelete(IOHelper.java:143) at com.cenqua.fisheye.rep.DiffTextCache.<init>(DiffTextCache.java:51) at com.cenqua.fisheye.rep.RepositoryScanner.<init>(RepositoryScanner.java:66) at com.cenqua.fisheye.svn.SvnRepositoryScanner.<init>(SvnRepositoryScanner.java:56) at com.cenqua.fisheye.svn.SvnRepositoryEngine.<init>(SvnRepositoryEngine.java:55) at com.cenqua.fisheye.svn.SvnRepositoryConfig.createRepositoryEngine(SvnRepositoryConfig.java:145) at com.cenqua.fisheye.rep.RepositoryHandle.run(RepositoryHandle.java:265) at com.cenqua.fisheye.config.RepositoryManager.runRepository(RepositoryManager.java:222) at com.cenqua.fisheye.config.RootConfig.startRepositories(RootConfig.java:349) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:260) at com.cenqua.fisheye.ctl.Run.main(Run.java:44) ... 6 more [ Feb 11 14:33:34 Stopping because all processes in service exited. ] [ Feb 11 14:33:34 Executing stop method ("/opt/bw/svc/method/svc-fisheye stop") ] FishEye not running? Problem connecting to 127.0.0.1:28059 : Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at java.net.Socket.<init>(Socket.java:367) at java.net.Socket.<init>(Socket.java:209) at com.cenqua.fisheye.ctl.BaseRemoteCommand.sendCommand(BaseRemoteCommand.java:89) at com.cenqua.fisheye.ctl.BaseRemoteCommand.mainImpl(BaseRemoteCommand.java:62) at com.cenqua.fisheye.ctl.Stop.main(Stop.java:11) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:105) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:38) [ Feb 11 14:33:44 Method "stop" exited with status 0 ] [ Feb 11 14:33:45 Executing start method ("/opt/bw/svc/method/svc-fisheye start") ] [ Feb 11 14:33:45 Method "start" exited with status 0 ] INFO - FishEye 1.6.6 (build-373), Built on 2009-02-10 {noformat} The error and debug log are suspiciously silent. It also apears as though fisheye is eating up pretty much all of the CPU: {noformat} PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP 11288 fisheye 1488M 1233M cpu4 51 0 0:15:28 16% java/71 24784 2000 7652M 3369M cpu12 11 0 6662:35:5 5.6% mysqld/35 28003 root 4248K 1296K cpu16 0 0 4584:06:3 3.0% bash/1 9754 zabbix 9616K 1424K cpu24 0 5 572:31:02 3.0% zabbix_server/1 11698 igalic 4040K 3936K cpu23 59 0 0:01:01 1.1% prstat/1 28767 root 784M 244M sleep 0 0 198:48:38 1.0% ns-slapd/42 18675 webservd 322M 120M sleep 59 0 2:12:20 0.4% httpd/28 23241 webservd 271M 96M sleep 59 0 2:00:39 0.4% httpd/28 20869 webservd 285M 108M sleep 59 0 1:51:42 0.4% httpd/28 12761 webservd 328M 158M sleep 59 0 1:18:31 0.3% httpd/28 9251 webservd 36M 22M sleep 59 0 0:11:53 0.2% httpd/1 24307 webservd 33M 19M sleep 59 0 0:01:21 0.2% httpd/1 11251 webservd 30M 15M sleep 59 0 0:00:03 0.1% httpd/1 9755 zabbix 9616K 2168K sleep 39 5 96:28:47 0.1% zabbix_server/1 9753 zabbix 9616K 2064K sleep 39 5 96:45:28 0.1% zabbix_server/1 9756 zabbix 9616K 2208K sleep 39 5 95:39:57 0.1% zabbix_server/1 9757 zabbix 9616K 2064K sleep 29 5 98:29:09 0.1% zabbix_server/1 11248 webservd 30M 14M sleep 59 0 0:00:07 0.1% httpd/1 8010 webservd 31M 14M sleep 49 0 0:00:28 0.1% httpd/1 11763 webservd 27M 12M sleep 49 0 0:00:02 0.1% httpd/1 10594 webservd 27M 11M sleep 59 0 0:00:05 0.1% httpd/1 16962 zabbix 5592K 2000K sleep 24 5 58:27:23 0.1% zabbix_agentd/1 23142 webservd 33M 19M sleep 59 0 0:01:07 0.1% httpd/1 10188 webservd 30M 14M sleep 59 0 0:00:12 0.1% httpd/1 10592 webservd 31M 14M sleep 54 0 0:00:14 0.1% httpd/1 29133 root 169M 43M sleep 59 0 4:55:04 0.1% java/56 27917 root 7944K 1688K sleep 49 0 2:08:52 0.1% rotatelogs/1 23818 webservd 33M 19M sleep 59 0 0:01:39 0.0% httpd/1 24059 webservd 33M 19M sleep 59 0 0:00:59 0.0% httpd/1 1315 root 254M 49M sleep 59 0 83:56:50 0.0% java/58 ZONEID NPROC SWAP RSS MEMORY TIME CPU ZONE 12 54 2627M 2406M 15% 10:28:28 18% asp1inbld001_zone 2 68 8269M 6573M 40% 7701:59:5 9.5% asp1inmon001_zone 0 103 677M 318M 2.0% 4913:42:5 4.4% global 11 43 1204M 1000M 6.1% 214:31:39 1.1% asp1inmgt001_zone 14 81 1326M 523M 3.2% 2:50:51 0.7% asp1inhst001_zone 13 51 1490M 551M 3.4% 3:37:03 0.3% asp1indpl001_zone 7 39 1277M 637M 3.9% 41:34:02 0.0% asp5inbkp001_zone {noformat}
    via by Igor Galić,
  • This scenario came up after I rsynced a remote folder, but I forgot a trailing / and got another folder. fixing this minor problem I went on to other things, not checking. After the rysnc took, the updated root directory perms were rwxrwx--- for which the FE process user could not access at all. I thought this was initially related a repository scan problem but no, I restarted FE with different memory paramters, with/without the troublesome repo entry and the result was the same. EOM: {noformat} ERROR: problem running command java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:105) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:38) Caused by: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:572) at java.lang.StringBuilder.append(StringBuilder.java:203) at java.io.UnixFileSystem.resolve(UnixFileSystem.java:93) at java.io.File.<init>(File.java:207) at java.io.File.listFiles(File.java:1056) at com.cenqua.fisheye.io.IOHelper.recursiveDeleteImpl(IOHelper.java:158) at com.cenqua.fisheye.io.IOHelper.recursiveDelete(IOHelper.java:143) at com.cenqua.fisheye.rep.DiffTextCache.<init>(DiffTextCache.java:51) at com.cenqua.fisheye.rep.RepositoryScanner.<init>(RepositoryScanner.java:66) at com.cenqua.fisheye.perforce.P4Scanner.<init>(P4Scanner.java:48) at com.cenqua.fisheye.perforce.P4RepositoryEngine.<init>(P4RepositoryEngine.java:36) at com.cenqua.fisheye.perforce.P4RepositoryConfig.createRepositoryEngine(P4RepositoryConfig.java:140) at com.cenqua.fisheye.rep.RepositoryHandle.run(RepositoryHandle.java:265) at com.cenqua.fisheye.config.RepositoryManager.runRepository(RepositoryManager.java:222) at com.cenqua.fisheye.config.RootConfig.startRepositories(RootConfig.java:349) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:261) at com.cenqua.fisheye.ctl.Run.main(Run.java:44) ... 6 more {noformat} I'm guessing that there is something not quite kosher in the exception handling for native command execution/cleanup....
    via by Andy Brook (Javahollic Software),
    • java.lang.OutOfMemoryError: Java heap space at java.io.WinNTFileSystem.list(Native Method) at java.io.File.list(Unknown Source) at java.io.File.listFiles(Unknown Source) at tac.program.TileStore.clearStore(TileStore.java:98) at tac.gui.SettingsGUI$ClearTileCacheAction$1.run(SettingsGUI.java:592)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,