forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDSIPP Question

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Sat Oct 01, 2005 3:14 am    Post subject: VDSIPP Question Reply with quote

I know the DLL is not longer supported but I have a question. I have an application that im playing with that is basically the equivelant to portmon which is provided as a demo in VDSTCP package. I wrote something similar in VDSIPP. Some of the details are as follows. In VDSIPP i am basically listening on 30 ports. When I run my application it uses about 8MB of memory and 0-1%CPU. As soon as I scan the system with a portscanner to test it my memory utilization goes to 12MB (not a big deal) but my CPU spikes to 99/100%.

Is this normal. I mean I use VDSIPP in several applications (servers) and I dont have any issues. Its just when I load up several listening ports that the problem rears its ugly head. Is this just designed to listen on 1 port per application or am I just doing something wrong?

Maybe time to register the VDSTCP stuff and start using it instead?

_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Sat Oct 01, 2005 4:07 pm    Post subject: Reply with quote

If you are listening with the TCP or UDP protocols then yes it will utilize high amounts of cpu. This is due to each instance running an internal timer to check for incoming messages and triggering an event in vds when a message comes in - thus in your case around 30 timers.
Back to top
View user's profile Send private message
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Sat Oct 01, 2005 7:05 pm    Post subject: Fix Reply with quote

Is there anyway to fix this? Or is it a limitation of the DLL itself?
_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Sat Oct 01, 2005 8:14 pm    Post subject: Reply with quote

Unlikely because the dll has to catch any incoming events for tcp/udp and then trigger an event in vds. The only way would be to rewrite the entire tcp/udp servers so no event is ever triggered and allows the vds script itself to manually check (with a single time) for the buffer in each tcp/udp server message stack to see if any message recently came in.
Back to top
View user's profile Send private message
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Sat Oct 01, 2005 8:20 pm    Post subject: Thanks Reply with quote

Thanks. I will use the other TCP libary for this application. So basically I should only use VDSIPP for single daemon type operations to keep the utilization low and manageable. Not a problem. Thanks for your quick responses.
_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Sun Oct 02, 2005 5:55 pm    Post subject: Reply with quote

The TCP/UDP functionality of vdsipp while functional has some major restrictions. The real promise in VDSIPP are the more mainstream protocols - smtp/pop/ftp/http, etc where much of the coding and wrapping of the tcpip layer is handled automatically.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group