Out of memory error
Hey,
Asking for help or info.
Ive been getting this Out of memory error lately with 4.6.20 and 4.6.26 servers.
First i noticed it with a old server that was still on 4.4.4 version but got updated without my knowledge. After the update it crashed every 3 days giving a out of memory errors in the log.
Today it happened again, when our 4.6.20 Bos server was acting strange - it wouldn't update button presses on a control panel - So i did a server reload from bos config to see if it would help. But after the reload everything was gone. It loaded up a new empty config all themes and devices deleted.
With a error:
Devices : 27.01.2020 10:32:39 : Error : Server : Error loading file C:\Program Files (x86)\ComfortClick\bOS Server\Building\Configuration.bin. Exception of type System.OutOfMemoryException was thrown. at System.Collections.Generic.Dictionary`2.Resize(Int32 newSize, Boolean forceNewHashCodes)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Runtime.Serialization.SerializationInfo.AddValueInternal(String name, Object value, Type type)
at System.Runtime.Serialization.SerializationInfo.AddValue(String name, Object value, Type type)
at System.Runtime.Serialization.SerializationInfo.AddValue(String name, Object value)
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ParseMember(ParseRecord pr)
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Parse(ParseRecord pr)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadMemberPrimitiveUnTyped()
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at BOSCommon.Helpers.Serialization.ReliableSerialization.Load(IServer server, String filename, BinaryFormatter bf)
Next reload wont help and the error is gone with the next reload as if it wouldn't even load the building folder.
Im really hoping that comfortclicks guys can restore my building folder because there was a lot of updates and no backups from today.
Regards,
Guy with a headache
Damn...
How big are those projects? Are you using single server for massive tons of data?
I always think about what should be the limit of resources used on a project. There has to be a limit somewhere, not only depending on the hardware, but also on the .NET level.
My projects are usually smaller, and have a dedicated bOS for each one, so I have never had any problems with memory. But if I had to use bOS for some kind of serviced apartments, probably I would think about some kind of load-balanced scheme.
Even though, I'm very careful with some stuff, like not using transparency, etc. At least the projects feel lighter, and the menus are faster.
About your issues, I'm afraid that only bOS team can help with that.
Nevertheless, I think that bOS team should clarify what would be the feasible limit for each device (like, a Jigsaw obviously will have less power than a Grinder, and so on).
This kind of issues, led me to backup everytime I change stuff.
Best regards
Project 1 has 180 apartments running on one server, project 2 has 19 apartments also running on one server. Both crash tho the bigger building was OK for a long time so i was hoping that the beta fixed this outofmemory issue. Smaller server crashes every week, its unable to stop or restart the bOS service and only a full server restart helps.
But i managed to restore it after all. I did a full restart and then opened only bOS and started to restore it, i saw a memory bump of ~2gb when it was restoring it. This doesnt look much as the total usage was 4,2gb and when it finished it fell down to 2,5gb.
Server has total of 16gb ram... max ive seen it use was 13gb and most of it was ETS whos a huge memory hog. So maybe it was ETS's fault i dont know... On the other smaller bulding i only run bOS on it, not ETS.
I would love to do it so every apartment has a separate server/jigsaw but there is always the money question. Everybody wants the best but are willing to pay for the worst. And i have little to say about that, im just a monkey who obeys orders.