[Spread-users] Spread API - perf problem

ahmed maouche ahmed.maouche at nextenso.com
Wed Jun 4 12:03:28 EDT 2003


Hi,

I try to use Spread to manage DB replication.
In order to check perf, I write a simple application with a java client 
and C++ server on a single host.

The client send a message ( Key and value like k1,V1 ) to the server and 
wait for ACK.

The server manage 2 type of messages:
- PUT : the request consist to put the key,value in the Database.
and to send ACK to the client if succeed.
- GET : the request consist to send the value of a key extracted from 
database.

The database is a simple Hashtable.

When the client works as a single thread, the Application perfoms 
25Messages/seconde.

It seems to be very slow ?
Is there any problem in the maner to use spread API ???

Attached files :
client programs in java
server program in C++


need Help
Thanks


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Client.java
Url: http://lists.spread.org/pipermail/spread-users/attachments/20030604/ac9795ef/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: DbaseGroup.java
Url: http://lists.spread.org/pipermail/spread-users/attachments/20030604/ac9795ef/attachment-0001.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: DbaseLib.java
Url: http://lists.spread.org/pipermail/spread-users/attachments/20030604/ac9795ef/attachment-0002.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: DBServer.c
Url: http://lists.spread.org/pipermail/spread-users/attachments/20030604/ac9795ef/attachment.c 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: DBServer.h
Url: http://lists.spread.org/pipermail/spread-users/attachments/20030604/ac9795ef/attachment.h 


More information about the Spread-users mailing list