From: Robert Dober Date: 2008-12-26T05:48:16+09:00 Subject: Re: StressTest On Thu, Dec 25, 2008 at 8:00 PM, Robert Klemme wrote: > On 25.12.2008 19:50, Ilias bankai wrote: >> >> Is there a way to allocate memory with a ruby script? >> >> I want to create a script that allocate a certain amount of memory and >> use it to stress test our Citrix servers. >> >> >> I have 40 test accounts. All these account can login concurrent to a >> Citrix server. During the login I want to fire up the Ruby script for >> each user that allocates 350 MB per session. > > ruby -e '"x" * 350_000_000' It is true that OP did not state it, but somehow I guess that he does not want the memory to be released. In that case add a gets to Robert's one liner "x" * 350_000_000 ; gets HTH Robert > > Cheers > > robert > > -- > remember.guy do |as, often| as.you_can - without end > > -- Il computer non è una macchina intelligente che aiuta le persone stupide, anzi, è una macchina stupida che funziona solo nelle mani delle persone intelligenti. Computers are not smart to help stupid people, rather they are stupid and will work only if taken care of by smart people. Umberto Eco