A while ago Eliot Miranda posted this script to see when an image runs out of memory:
| them | them := OrderedCollection new. [[them addLast: (ByteArray new: 16000000). Transcript cr; show: ((Smalltalk vm parameterAt: 3) / (1024*1024.0) printShowingDecimalPlaces: 1); flush] repeat] on: OutOfMemory do: [:ex| 2 to: them size by: 2 do: [:i| them at: i put: nil. Smalltalk garbageCollect]]. Transcript cr; show: ((Smalltalk vm parameterAt: 3) / (1024*1024.0) printShowingDecimalPlaces: 1); flush. them := nil. Smalltalk garbageCollect. Transcript cr; show: ((Smalltalk vm parameterAt: 3) / (1024*1024.0) printShowingDecimalPlaces: 1); flush its from here:http://forum.world.st/New-Cog-VMs-available-td4764823.html#a4764840 With that you ought to easily be able to see how high you can go on a platform. Blondeau Vincent wrote > Hi, > > > I am confronted with a memory issue under Windows. > > I have an image of 745Mo with a Moose model, and I cannot instantiate a > string of 30Mo: I get a OutOfMemoryException. > > The theoretical limit is 2Go, isn't it? > > > > I have a prespur vm under a Windows 64 bits: > Smalltalk vm version: > 'NBCoInterpreter NativeBoost-CogPlugin-EstebanLorenzano.21 uuid: > 4d9b9bdf-2dfa-4c0b-99eb-5b110dadc697 Dec 3 2015 > NBCogit NativeBoost-CogPlugin-EstebanLorenzano.21 uuid: > 4d9b9bdf-2dfa-4c0b-99eb-5b110dadc697 Dec 3 2015 > https://github.com/pharo-project/pharo-vm.git Commit: > 28d077d8df494ce050ca42c97c892471e8b8740c Date: 2015-10-16 12:02:43 +0200 > By: Esteban Lorenzano < > estebanlm@ > > Jenkins build #15019 > > I set in Pharo.ini: AddressSpaceLimit=2000000000 > > > > What can I do to bypass the issue? > > > > > > Thanks in advance, > > Vincent > > > !!!************************************************************************************* > "Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage > exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le > secret professionnel. Si vous recevez ce message par erreur, merci d'en > avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du > message ne pouvant ?tre assur?e sur Internet, la responsabilit? de > Worldline ne pourra ?tre recherch?e quant au contenu de ce message. Bien > que les meilleurs efforts soient faits pour maintenir cette transmission > exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard > et sa responsabilit? ne saurait ?tre recherch?e pour tout dommage > r?sultant d'un virus transmis. > > This e-mail and the documents attached are confidential and intended > solely for the addressee; it may also be privileged. If you receive this > e-mail in error, please notify the sender immediately and destroy it. As > its integrity cannot be secured on the Internet, the Worldline liability > cannot be triggered for the message content. Although the sender > endeavours to maintain a computer virus-free network, the sender does not > warrant that this transmission is virus-free and will not be liable for > any damages resulting from any virus transmitted.!!!" -- View this message in context: http://forum.world.st/What-is-the-limit-of-prespur-VM-memory-under-Windows-tp4881619p4881625.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.