aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes How to test LockManager more Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "How to test LockManager more" Watch "How to test LockManager more" New topic
Author

How to test LockManager more

Aruna Raghavan
Ranch Hand

Joined: May 14, 2002
Posts: 194
Hi,
I tested LockManager by creating 60 threads that try to lock and unlock the same record concurrently. Are there any other suggestions on how to test this?
Thanks very much,
Aruna.


Aruna A. Raghavan<br />SCJP, SCJD, SCWCD
Bernhard Woditschka
Ranch Hand

Joined: Sep 16, 2002
Posts: 89
A touger test is to modify random records with random values - flund me some bugs
I also strated multiple programms on multiole computers just to be sure...
Bern
Juan Katabasis
Ranch Hand

Joined: Jun 20, 2001
Posts: 46
i created an small multithreaded app to launch clients with requests and then i used jprofiler (ej-technologies) and optimizeit (borland) to monitorize and test the server behaviour and performance


Regards<br />J.
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937

I tested LockManager by creating 60 threads that try to lock and unlock the same record concurrently. Are there any other suggestions on how to test this?

Have these 60 threads to modify the same record in a loop, -- say each thread books a flight 20 times in a row. At the end of the test, the seat count should be reduced by exactly 1200. You may also want to put an artifical sleep() in both lock() and unlock() to amplify the problem, if any.
Eugene.
[ January 18, 2003: Message edited by: Eugene Kononov ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to test LockManager more
 
Similar Threads
question about assignment
LockManger Issues ?
bookTicket( int recNo, int numSeats )
Implementing Lock/Unlock
hi Mark! need your opinion. "lock()"