Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How can I speed up my server?

How can I speed up my server?

How can I speed up my server?

I have a Java client on a PC and a C++ server on a unix machine.  The client calls the method with a structure, the values in the structure are modified and returned.

When I call the method once it takes appx. 1400ms
This is pretty slow compared with my XML-RPC version of the same test (it takes appx. 60ms)

The CORBA version does very well if I loop the test.  If I call it 10 times it still takes appx. 1400ms, whereas the XML-RPC version gets slower, and slower.

However, I am only going to call it once in reality so would like to know if there's a way to speed it up?

My client call:
mySecuData = testImpl.test(userName, passWord, firstName, lastName, loginsLeft, lockedOut, comments);

My server:
CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
CORBA::Object_var obj = orb->resolve_initial_references("RootPOA");
PortableServer::POA_var rootPOA = PortableServer::POA::_narrow(obj);

CORBA::PolicyList policyList;
  policyList[(CORBA::ULong)0] = rootPOA->create_lifespan_policy(PortableServer::PERSISTENT);
PortableServer::POAManager_var poaManager = rootPOA->the_POAManager();

PortableServer::POA_var testPOA = rootPOA->create_POA("test_poa", poaManager, policyList);
test_Impl testManagerServant("testinterfaceServant");

PortableServer::ObjectId_var managerId =

testPOA->activate_object_with_id(managerId, &testManagerServant);


CORBA::Object_var testRef = testPOA->servant_to_reference(&testManagerServant);
    cout << testRef << " is ready" << endl;
Replies continue below

Recommended for you

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close