[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

StressTest

Ilias bankai

12/25/2008 6:51:00 PM


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
--
Posted via http://www.ruby-....

5 Answers

Robert Klemme

12/25/2008 6:57:00 PM

0

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

--
remember.guy do |as, often| as.you_can - without end

Robert Dober

12/25/2008 8:48:00 PM

0

On Thu, Dec 25, 2008 at 8:00 PM, Robert Klemme
<shortcutter@googlemail.com> 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
>
>



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

Ilias bankai

12/25/2008 11:52:00 PM

0

Robert Dober wrote:
> On Thu, Dec 25, 2008 at 8:00 PM, Robert Klemme
> <shortcutter@googlemail.com> 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
--
Posted via http://www.ruby-....

Robert Klemme

12/26/2008 9:57:00 AM

0

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


--
remember.guy do |as, often| as.you_can - without end

Ilias bankai

12/26/2008 12:42:00 PM

0


I will indeed, thanks again for your support!


Regards,

iLias.
--
Posted via http://www.ruby-....