StressTest


#1

Hello All,

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.

Any help /guidance is much appreciated.

Platform:
Windows 2003 SP2 (64-bit)
ruby -v (ruby 1.8.6 (2007-09-24 patch level 111) [i386-mswin32])

Kind Regards,

iLias


#2

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’

Cheers

robert


#3

On Thu, Dec 25, 2008 at 8:00 PM, Robert K.
removed_email_address@domain.invalid wrote:

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


#4

Robert D. wrote:

On Thu, Dec 25, 2008 at 8:00 PM, Robert K.
removed_email_address@domain.invalid wrote:

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

Exactly, I don’t want the memory to be released (for a while)

(“x” * 350_000_000 ; gets) works perfect!!

Thank you very much guy’s !!

Regards,

iLias


#5

On 26.12.2008 00:51, Ilias bankai wrote:

Exactly, I don’t want the memory to be released (for a while)

You could as well use sleep then.

Cheers

robert


#6

I will indeed, thanks again for your support!

Regards,

iLias.