Performance issue with C++ ,Socket


 
Thread Tools Search this Thread
Top Forums Programming Performance issue with C++ ,Socket
# 1  
Old 09-15-2008
Performance issue with C++ ,Socket

Hi all,
I am facing some problem in Socket programming(C++ & Solaris 5.0).I am using socket as
basic connecting point & MEP(Mesagae Exchange Protocol) as high level protocol to send &
receive Message & ACK, between two different system.
MEP is a protocol through which you can send MSG through Socket & wait for the ACK for the
corresponding MSG & go on like this.When I am using our binary(s) between two different
Solaris Box(with diffrent IP) the transfer rate is quite good(Send one MSG & get ACKfor it
takes 1 milisec).
But the problem comes when I use the same binary(s) to do the above MSG processing in
the same Solaris box(with one IP), throughput goes very low (like 50 milisec for each MSG
processing).
I have tried with making the socket to work in non-blocking mod also.But that does not
help at all.
Looking for some quick help & hints to resolve this issue.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Performance issue

Hi We have an AIX5.3 server with application which is written in C. We are facing server (lpar) hangs intermediately. If we open new telnet window prompts for user and takes hell of a time to authenticate, not only that if we run ps -aef then also it takes lot of time. surprisingly there is no... (2 Replies)
Discussion started by: powerAIX
2 Replies

2. AIX

Performance issue

Hi, We have 2 lpars on p6 blade. One of the lpar is having 3 core cpu with 5gb memory running sybase as database. An EOD process takes 25 min. to complete. Now we have an lpar on P7 server with entitled cpu capacity of 2 with 16 Gb memory and sybase as database. The EOD process which takes... (17 Replies)
Discussion started by: vjm
17 Replies

3. UNIX for Dummies Questions & Answers

Performance issue

hi I am having a performance issue with the following requirement i have to create a permutation and combination on a set of three files such that each record in each file is picked and the output is redirected in a specific format but it is taking around 70 odd hours to prepare a combination... (7 Replies)
Discussion started by: mad_man12
7 Replies

4. Shell Programming and Scripting

Performance issue or something else?

Hi All, I have the following script which I use in Nagios to check the health of the applications, the problem with it is that the curl part ($TOTAL) does not return anything after running for 2-3 hrs, even though from command line the script runs fine but not from Nagios. There are 17... (1 Reply)
Discussion started by: jacki
1 Replies

5. Programming

perl socket issue

Hi I am teaching myself perl and am writing a socket application to get experience. I am using Eclipse with the EPIC plugin to run the code in debug mode. I think that sometimes the script is not releasing the port if I terminate it in debug mode as I am occasionally getting the message: - ... (3 Replies)
Discussion started by: steadyonabix
3 Replies

6. Solaris

Performance issue

Hi Gurus, I am beginner in solaris and want to know what are the things we need to check for performance monitoring on our solairs OS. for DISK,CPU and MEMORY. Also how we do ipforwarding in slaris Many thanks for your help Pradeep P (4 Replies)
Discussion started by: ppandey21
4 Replies

7. Programming

C socket issue with SMTP

Hey guys, im trying to write a program that'll create a report then email the report... my problem is when it comes to the socket trying to send the second command after EHLO smtp,*.* When the first command is sent its working fine... but when the program tries to send the second command it... (6 Replies)
Discussion started by: Jess83
6 Replies

8. UNIX for Advanced & Expert Users

performance issue

Hi, on a linux server I have the following : vmstat 2 10 procs memory swap io system cpu r b w swpd free buff cache si so bi bo in cs us sy id 0 4 0 675236 39836 206060 1617660 3 3 3 6 8 7 1 1 ... (1 Reply)
Discussion started by: big123456
1 Replies

9. AIX

performance issue

We have a AIX v5.3 on a p5 system with a poor performing Ingres database. We added one CPU to the system to see if this would help. Now there are two CPU's. with sar and topas -P I see good results: CPU usage around 30% with topas I only see good results in the process output screen, the... (1 Reply)
Discussion started by: rein
1 Replies

10. UNIX for Advanced & Expert Users

Performance issue

Hello all, I just stuck up in an uncertain situation related to network performance... I am trying to access one of my remote client unix machine from a distant location.. The client machine is Ultra-5_10 , with SunOS 5.5.1 The ndd result ( hme1 )shows that the machine is hooked to a... (5 Replies)
Discussion started by: shibz
5 Replies
Login or Register to Ask a Question
Net::DRI::Transport::Socket(3pm)			User Contributed Perl Documentation			  Net::DRI::Transport::Socket(3pm)

NAME
Net::DRI::Transport::Socket - TCP/TLS Socket connection for Net::DRI DESCRIPTION
This module implements a socket (tcp or tls) for establishing connections in Net::DRI METHODS
At creation (see Net::DRI "new_profile") you pass a reference to an hash, with the following available keys: socktype ssl, tcp or udp ssl_key_file ssl_cert_file ssl_ca_file ssl_ca_path ssl_cipher_list ssl_version ssl_passwd_cb if "socktype" is 'ssl', all key materials, see IO::Socket::SSL documentation for corresponding options ssl_verify see IO::Socket::SSL documentation about verify_mode (by default 0x00 here) ssl_verify_callback see IO::Socket::SSL documentation about verify_callback, it gets here as first parameter the transport object then all parameter given by IO::Socket::SSL; it is explicitly verified that the subroutine returns a true value, and if not the connection is aborted. remote_host remote_port hostname (or IP address) & port number of endpoint client_login client_password protocol login & password client_newpassword (optional) new password if you want to change password on login for registries handling that at connection protocol_connection Net::DRI class handling protocol connection details. (Ex: "Net::DRI::Protocol::RRP::Connection" or "Net::DRI::Protocol::EPP::Connection") protocol_data (optional) opaque data given to protocol_connection class. For EPP, a key login_service_filter may exist, whose value is a code ref. It will be given an array of services, and should give back a similar array; it can be used to filter out some services from those given by the registry. close_after number of protocol commands to send to server (we will automatically close and re-open connection if needed) local_host (optional) the local address (hostname or IP) you want to use to connect SUPPORT
For now, support questions should be sent to: <netdri@dotandco.com> Please also see the SUPPORT file in the distribution. SEE ALSO
http://www.dotandco.com/services/software/Net-DRI/ AUTHOR
Patrick Mevzek, <netdri@dotandco.com> COPYRIGHT
Copyright (c) 2005-2010 Patrick Mevzek <netdri@dotandco.com>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. See the LICENSE file that comes with this distribution for more details. perl v5.10.1 2010-03-29 Net::DRI::Transport::Socket(3pm)