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.
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.
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
Exactly, I don’t want the memory to be released (for a while)