Help on server OutOfMemoryException

Currently running 3.1 EAP (build 6692), everything has been stable till this afternoon, when the server crashed w/ OOME.

Any ideas what might be causing this? Judging from the stacktrace it appears to the StarTeam issue...

And if I've set TeamCity to run as a service, how can I modify the servers memory settings?

I thought I had at one time modified teamcity-server.bat and changed the memory settings, but I can't seem to find anything online on how to modify the memory settings if you're running as a Windows service.

Stack trace :
-


INFO - jetbrains.buildServer.VCS - Collecting changes for CPE/src; from version 1205266536000; root=checkout-mode=head
eol-converision=as-is
starteam-password=*****
url=starteam://statl01.iss.net:49201/CommonPolicyEditor/CommonPolicyEditor/Dev/CPE/src
user=cerbuild

INFO - jetbrains.buildServer.VCS - Collecting changes for CPE/issJavaCommon; from version 1205247024553; root=checkout-mode=head
eol-converision=as-is
starteam-password=*****
url=starteam://statl01.iss.net:49201/CommonPolicyEditor/CommonPolicyEditor/Dev/CPE/issJavaCommon
user=cerbuild

ERROR - jetbrains.buildServer.VCS - Java heap space

java.lang.OutOfMemoryError: Java heap space
at com.starbase.starteam.TypedResource_Data.initialize(TypedResource_Data.java:50)
at com.starbase.starteam.TypedResource_Data.(TypedResource_Data.java:42) at com.starbase.starteam.Item_Data.(Item_Data.java:26) at com.starbase.starteam.Item.getCachedObject(Item.java:248) at com.starbase.starteam.Item.setItemID(Item.java:476) at com.starbase.starteam.Item.initialize(Item.java:437) at com.starbase.starteam.Item.initialize(Item.java:430) at com.starbase.starteam.Item.(Item.java:389) at com.starbase.starteam.Folder.]]>(Folder.java:107)
at com.starbase.starteam.Folder.read(Folder.java:1660)
at com.starbase.starteam.FolderTreeReaderImpl.readFolder(FolderTreeReaderImpl.java:62)
at com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:67)
at com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:71)
at com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:71)
at com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:71)
at com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:71)
at com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:71)
at com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:71)
at com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:71)
at com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:71)
at com.starbase.starteam.View_Cmd_GetFolders.pop(View_Cmd_GetFolders.java:57)
at com.starbase.starteam.vts.comm.CommandMacro.executeOnce(CommandMacro.java:104)
at com.starbase.starteam.vts.comm.CommandMacro.execute(CommandMacro.java:65)
at com.starbase.starteam.CmdMacroProjectSpecificCommand.execute(CmdMacroProjectSpecificCommand.java:38)
at com.starbase.starteam.View_Cmd_GetFolders.execute(View_Cmd_GetFolders.java:28)
at com.starbase.starteam.Folder_Cache.fetchAllIDs(Folder_Cache.java:320)
at com.starbase.starteam.Folder_Cache.refreshItems(Folder_Cache.java:174)
at com.starbase.starteam.View.getRootFolder(View.java:926)
at jetbrains.buildServer.buildTriggers.vcs.starteam.adapt.SnapshotImpl.findFolder(SnapshotImpl.java:7)
at jetbrains.buildServer.buildTriggers.vcs.starteam.StarteamSupport$2.collectBuildChanges(StarteamSupport.java:13)
at jetbrains.buildServer.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:7)
at jetbrains.buildServer.buildTriggers.vcs.starteam.StarteamSupport.collectBuildChanges(StarteamSupport.java:171)
ERROR - jetbrains.buildServer.VCS - Java heap space

java.lang.OutOfMemoryError: Java heap space
at java.lang.String.]]>(String.java:174)
at com.starbase.util.UTF8.Utf8ToString(UTF8.java:51)
at com.starbase.starteam.vts.comm.BinaryCommand.readString(BinaryCommand.java:229)
at com.starbase.starteam.vts.pickle.Variant.readData(Variant.java:468)
at com.starbase.starteam.VariantMatrix_Reader.read(VariantMatrix_Reader.java:55)
at com.starbase.starteam.Item_Cmd_GetData.pop(Item_Cmd_GetData.java:172)
at com.starbase.starteam.vts.comm.CommandMacro.executeOnce(CommandMacro.java:104)
at com.starbase.starteam.vts.comm.CommandMacro.execute(CommandMacro.java:65)
at com.starbase.starteam.CmdMacroComponentServiceCommand.execute(CmdMacroComponentServiceCommand.java:48)
at com.starbase.starteam.Item_Cmd_GetData.fetchChunk(Item_Cmd_GetData.java:55)
at com.starbase.starteam.Item_Cmd_GetData.fetch(Item_Cmd_GetData.java:40)
at com.starbase.starteam.Item_Cache.fetch(Item_Cache.java:334)
at com.starbase.starteam.Cache.get(Cache.java:149)
at com.starbase.starteam.Cache.internalRefresh(Cache.java:330)
at com.starbase.starteam.Item_Cache.populate(Item_Cache.java:61)
at com.starbase.starteam.Item_CacheRefCollection.populateProperties(Item_CacheRefCollection.java:461)
at com.starbase.starteam.Item_CacheRefCollection.populate(Item_CacheRefCollection.java:112)
at com.starbase.starteam.Type.populate(Type.java:1065)
at com.starbase.starteam.File_Type.populate(File_Type.java:43)
at com.starbase.starteam.Folder.populateNow(Folder.java:1094)
at jetbrains.buildServer.buildTriggers.vcs.starteam.adapt.StarteamUtil.populateFolderWithItems(StarteamUtil.java:44)
at jetbrains.buildServer.buildTriggers.vcs.starteam.adapt.StarteamFolderImpl.populate(StarteamFolderImpl.java:19)
at jetbrains.buildServer.buildTriggers.vcs.starteam.StarteamSupport$2.collectBuildChanges(StarteamSupport.java:12)
at jetbrains.buildServer.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:7)
at jetbrains.buildServer.buildTriggers.vcs.starteam.StarteamSupport.collectBuildChanges(StarteamSupport.java:171)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:5)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChanges(VcsChangesLoader.java:24)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:243)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.checkForModifications(VcsManagerImpl.java:273)
at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.checkForModifications(SecuredVcsManager.java:45)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:6)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)

1 comment

Hello,

Try this command (invoke it from the bin folder of TeamCity installation
directory):
tomcat6w.exe //ES//TeamCity

You can read more about this command here:
http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html

--
Pavel Sher
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"



"Rafal Niedzialkowski" <rniedzial@us.ibm.com> wrote in message
news:23671705.1205273911389.JavaMail.itn@is.intellij.net...

Currently running 3.1 EAP (build 6692), everything has been stable still
this afternoon, when the server crashed w/ OOME.

>

Two questions : any ideas what might be causing this? And if I've set
TeamCity to run as a service, how can I modify the servers memory
settings? I thought I had at one time modified teamcity-server.bat and
changed the memory settings, but I can't seem to find anything online on
how to modify the memory settings if you're running as a Windows service.

>

Stack trace :
-------------------------------------
INFO - jetbrains.buildServer.VCS -
Collecting changes for CPE/src; from version 1205266536000;
root=checkout-mode=head
eol-converision=as-is
starteam-password=*****
url=starteam://statl01.iss.net:49201/CommonPolicyEditor/CommonPolicyEditor/Dev/CPE/src
user=cerbuild

>

INFO - jetbrains.buildServer.VCS -
Collecting changes for CPE/issJavaCommon; from version 1205247024553;
root=checkout-mode=head
eol-converision=as-is
starteam-password=*****
url=starteam://statl01.iss.net:49201/CommonPolicyEditor/CommonPolicyEditor/Dev/CPE/issJavaCommon
user=cerbuild

>

ERROR - jetbrains.buildServer.VCS - Java
heap space

>

java.lang.OutOfMemoryError: Java heap space
at
com.starbase.starteam.TypedResource_Data.initialize(TypedResource_Data.java:50)
at
com.starbase.starteam.TypedResource_Data.<init>(TypedResource_Data.java:42)
at com.starbase.starteam.Item_Data.<init>(Item_Data.java:26)
at com.starbase.starteam.Item.getCachedObject(Item.java:248)
at com.starbase.starteam.Item.setItemID(Item.java:476)
at com.starbase.starteam.Item.initialize(Item.java:437)
at com.starbase.starteam.Item.initialize(Item.java:430)
at com.starbase.starteam.Item.<init>(Item.java:389)
at com.starbase.starteam.Folder.<init>(Folder.java:107)
at com.starbase.starteam.Folder.read(Folder.java:1660)
at
com.starbase.starteam.FolderTreeReaderImpl.readFolder(FolderTreeReaderImpl.java:62)
at
com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:67)
at
com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:71)
at
com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:71)
at
com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:71)
at
com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:71)
at
com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:71)
at
com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:71)
at
com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:71)
at
com.starbase.starteam.View_Cmd_GetFolders.readFolderTree(View_Cmd_GetFolders.java:71)
at
com.starbase.starteam.View_Cmd_GetFolders.pop(View_Cmd_GetFolders.java:57)
at
com.starbase.starteam.vts.comm.CommandMacro.executeOnce(CommandMacro.java:104)
at
com.starbase.starteam.vts.comm.CommandMacro.execute(CommandMacro.java:65)
at
com.starbase.starteam.CmdMacroProjectSpecificCommand.execute(CmdMacroProjectSpecificCommand.java:38)
at
com.starbase.starteam.View_Cmd_GetFolders.execute(View_Cmd_GetFolders.java:28)
at com.starbase.starteam.Folder_Cache.fetchAllIDs(Folder_Cache.java:320)
at com.starbase.starteam.Folder_Cache.refreshItems(Folder_Cache.java:174)
at com.starbase.starteam.View.getRootFolder(View.java:926)
at
jetbrains.buildServer.buildTriggers.vcs.starteam.adapt.SnapshotImpl.findFolder(SnapshotImpl.java:7)
at
jetbrains.buildServer.buildTriggers.vcs.starteam.StarteamSupport$2.collectBuildChanges(StarteamSupport.java:13)
at
jetbrains.buildServer.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:7)
at
jetbrains.buildServer.buildTriggers.vcs.starteam.StarteamSupport.collectBuildChanges(StarteamSupport.java:171)
ERROR - jetbrains.buildServer.VCS - Java
heap space

>

java.lang.OutOfMemoryError: Java heap space
at java.lang.String.<init>(String.java:174)
at com.starbase.util.UTF8.Utf8ToString(UTF8.java:51)
at
com.starbase.starteam.vts.comm.BinaryCommand.readString(BinaryCommand.java:229)
at com.starbase.starteam.vts.pickle.Variant.readData(Variant.java:468)
at
com.starbase.starteam.VariantMatrix_Reader.read(VariantMatrix_Reader.java:55)
at com.starbase.starteam.Item_Cmd_GetData.pop(Item_Cmd_GetData.java:172)
at
com.starbase.starteam.vts.comm.CommandMacro.executeOnce(CommandMacro.java:104)
at
com.starbase.starteam.vts.comm.CommandMacro.execute(CommandMacro.java:65)
at
com.starbase.starteam.CmdMacroComponentServiceCommand.execute(CmdMacroComponentServiceCommand.java:48)
at
com.starbase.starteam.Item_Cmd_GetData.fetchChunk(Item_Cmd_GetData.java:55)
at com.starbase.starteam.Item_Cmd_GetData.fetch(Item_Cmd_GetData.java:40)
at com.starbase.starteam.Item_Cache.fetch(Item_Cache.java:334)
at com.starbase.starteam.Cache.get(Cache.java:149)
at com.starbase.starteam.Cache.internalRefresh(Cache.java:330)
at com.starbase.starteam.Item_Cache.populate(Item_Cache.java:61)
at
com.starbase.starteam.Item_CacheRefCollection.populateProperties(Item_CacheRefCollection.java:461)
at
com.starbase.starteam.Item_CacheRefCollection.populate(Item_CacheRefCollection.java:112)
at com.starbase.starteam.Type.populate(Type.java:1065)
at com.starbase.starteam.File_Type.populate(File_Type.java:43)
at com.starbase.starteam.Folder.populateNow(Folder.java:1094)
at
jetbrains.buildServer.buildTriggers.vcs.starteam.adapt.StarteamUtil.populateFolderWithItems(StarteamUtil.java:44)
at
jetbrains.buildServer.buildTriggers.vcs.starteam.adapt.StarteamFolderImpl.populate(StarteamFolderImpl.java:19)
at
jetbrains.buildServer.buildTriggers.vcs.starteam.StarteamSupport$2.collectBuildChanges(StarteamSupport.java:12)
at
jetbrains.buildServer.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:7)
at
jetbrains.buildServer.buildTriggers.vcs.starteam.StarteamSupport.collectBuildChanges(StarteamSupport.java:171)
at
jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:5)
at
jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChanges(VcsChangesLoader.java:24)
at
jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:243)
at
jetbrains.buildServer.vcs.impl.VcsManagerImpl.checkForModifications(VcsManagerImpl.java:273)
at
jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.checkForModifications(SecuredVcsManager.java:45)
at
jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:6)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)



0

Please sign in to leave a comment.