Welcome! Log In Create A New Profile

Advanced

The final nail !!

Posted by Anonymous User 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Anonymous User
The final nail !!
July 27, 2006 02:20PM
I managed to lay the final nail to this project, thanx to all you guys especially Sir Bobj.Here are the results that i am gettin, i hope this is what is required:


T:\VSpace\COS311_03\client>tclsh84 client.tcl
++++ ns-bound PASSED
++++ is_a_Bank PASSED
++++ open_acc PASSED
++++ deposit PASSED
++++ withdraw PASSED
++++ bankrupt PASSED
++++ statement PASSED
++++ auth PASSED
++++ dup PASSED
++++ remove PASSED
++++ stress PASSED
client.tcl: Total 11 Passed 11 Skipped 0 Failed 0

T:\VSpace\COS311_03\client>

======================================================================


T:\VSpace\COS311_03>server.exe -ORBInitRef NameService=corbaloc::127.0.0.1:5555/
NameService -ORBIIOPAddr inet:127.0.0.1:5556
Binding Bank in the Naming Service... done.
Running.

Account name not found,creating new account.
Account already exists returning reference.
Destroying account objects
Account name not found,creating new account.
Destroying account objects
Account name not found,creating new account.
Destroying account objects
Account name not found,creating new account.
Destroying account objects
Account name not found,creating new account.
Destroying account objects
Account name not found,creating new account.
Destroying account objects
Account name not found,creating new account.
Destroying account objects
Account name not found,creating new account.
Destroying account objects
Account name not found,creating new account.
Destroying account objects
Account name not found,creating new account.
Destroying account objects
Account name not found,creating new account.
Destroying account objects

===================================================================
Good luck to those of you still working on this project and plz don't give up, cause i almost did.
Re: The final nail !!
July 27, 2006 03:34PM
You only passed 11 tests. What about the twelfth?
Re: The final nail !!
July 27, 2006 05:45PM
You shouldn't mess with us like this. There were only 11 tests in the client.tcl file.
Re: The final nail !!
July 28, 2006 04:01PM
Sorry - couldn't resist.
Anonymous User
Re: The final nail !!
July 29, 2006 09:32AM
Don't worry Lionel, we have nailed all Sir Bobj's tests and he wish he had included a 12th test.Still we would have nailed it.
Re: The final nail !!
July 31, 2006 09:33AM
The 12th test:

1. Run the windows nt/2000/xp perfmon program
2. Add a trace to 'Working set' to monitor the memory usage of your running server.exe
3. Add the following infinite loop to client.tcl (cut and paste from the stress test)

corba::try {
while {1} {
set acc [$bank open ken ken]
$acc getStatement
$acc destroy
corba::try {
$acc balance
} catch {IDLyawning smileymg.org/CORBA/OBJECT_NOT_EXIST:1.0 except}
corba::release $acc
}

4. Check in perfmon that the working set is not continually rising in your server - if so you have a memory leak.

Due to time constraints (and the fact that I will not be here) this test will not be carried out, but if you are seriously proud of your server code you will make sure you pass it. My model solution does pass smile

Bob

PS. I understand that the submission page will not be closed before Friday, so you still have time to submit your updates.

Re: The final nail !!
July 31, 2006 10:20AM
Hi,

Does this mean that we can submit ass 3 anytime before Friday this week and it will be ok?

Regards,

Gayle
avatar Re: The final nail !!
July 31, 2006 11:04AM
So if finish the last tests and submit again, as per my other long winded post... before Friday 4th August...

it will be accepted and I can get all 11 tests (or maybe 12) done?

-- ilAn
Anonymous User
Re: The final nail !!
July 31, 2006 02:18PM
I thought i was out of the woods, well i guese i thought wrong.I had already submitted my assignment and moved on to other assignments which were accummulating.

Anyway the 12th test sounds interesting, i would like to give it a short myself.I looked for the Windows XP perfmon program and i can't find it.If anyone know where to locate it and how to add a trace to the 'working set' to monitor the memory usage of the server.exe pliz send in tips.
Re: The final nail !!
July 31, 2006 02:37PM
start->run (then type perfom)

The rest you should be able to figure out.

Bob
Anonymous User
Re: The final nail !!
July 31, 2006 03:06PM
If i go start->run->(then i type perfom/perform/peform) i get an error message sayin: Windows cannot find 'perform', what am i doing wrong?
Re: The final nail !!
July 31, 2006 03:19PM
Typo. Should be perfmon (from performance monitor).
Anonymous User
Re: The final nail !!
July 31, 2006 04:41PM
I changed my client as indicated above by Sir Bobj and i run my server.exe as usual together with the client.tcl which has an infinite loop.

While the client.tcl and the server are running in a infinite loop, I run the perfmon, i add all memory object counters(i.e Available Bytes/KB/MB/Cache Bytes/Page Faults).I don't know how to interpret this.All the lines of the memory object are constant, that is they are all straight horizontally, they are not going up or down.

What does this mean?.Do i have memory leak or not?.
Re: The final nail !!
August 01, 2006 08:32AM
Clear all the counters and go to Process - Working Set and then choose your server. If it goes up and up then you have a memory leak. If it stays horizontal you are a-ok.
Anonymous User
Re: The final nail !!
August 01, 2006 10:20AM
Thanx trautw my man, now i can see how my server is performing.The blue line which represents my server is constant on the y-axis(horizantally).It forms a cross with the vertical redline.

I think my programme has no memory leaks(Correct me if i am wrong).I guess my programme wacked Sir Bobj's 12th test after all.Lets see if he is gonna come up with a 13th test.

Sorry, only registered users may post in this forum.

Click here to login