• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bad Performence

 
pascal auderset
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Do you also have such a bad performence when you do a test like this:
main ...
for (int i = 0; i < 50; i++) {
Thread t = new TestThread();
t.start();
}
class TestThread extends Thread {
public void run() {
String thread = Thread.currentThread().getName();
try {
FlyByNightService service = connection.getService(db);
for (int i = 1; i < 10; i++) {
service.lock(i);
DataInfo info = service.getRecord(i);
service.unlock(i);
}
} catch (Exception ex) {
System.out.println(ex.getMessage());
}
}
}
The database is the db.db file from sun.
In my case this test takes 2minutes 20 sec.
Pascal
 
Matt Ghiold
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pascal,
Answering that question is very tricky, cause perfomance is not based on software alone.
I can take the best piece of software and run it on a 400mtz and have really bad performance.
I will tell you this, I have run something very similiar on my system and it took <1min, but im running on a 2.4gtz machine with 1/2 a gig of ram.
Hope this helps.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but im running on a 2.4gtz machine with 1/2 a gig of ram.

Not if I find out where you live.
Mark
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

In my case this test takes 2minutes 20 sec.

I am not sure what you are doing (maybe your server is in California and the client is in Massachusetts), but a similar test takes less than 10 seconds on my 800MHz machine.
You are running 50 threads each geting 10 records, but try the opposite, -- 10 threads each getting 50 records and see what happens.
Eugene.
[ January 17, 2003: Message edited by: Eugene Kononov ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic