StressTest

I

Ilias bankai

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
 
R

Robert Klemme

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
 
R

Robert Dober

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



--=20
Il computer non =E8 una macchina intelligente che aiuta le persone
stupide, anzi, =E8 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
 
I

Ilias bankai

Robert said:
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



--
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,181
Messages
2,570,970
Members
47,536
Latest member
VeldaYoung

Latest Threads

Top