PDA

View Full Version : Girder uses 100% CPU!



Ron
October 13th, 2002, 12:55 PM
Nope, I'll investigate later today.

Ron
October 13th, 2002, 12:55 PM
I currently don't have access to a computer besides my own, so I cannot test this. Maybe someone else can have a look at this.

Ron
October 13th, 2002, 12:55 PM
On 2002-02-27 18:10, mastiff wrote:
I have a possibly related problem: When Girder on my Win2K Advances Server receives a TCP/IP-command it freezes the whole system. It is actually the only thing I've found that can freeze such a stable operating system totally!

Cool :cool:

But really the problem must be somewhere in the TCPIP server. Anyone willing to look into this ?

<font size=-1>[ This Message was edited by: RonB on 2002-02-27 18:38 ]</font>

Ron
October 13th, 2002, 12:55 PM
No quiet mode is not supported by the client.

Ron
October 13th, 2002, 12:55 PM
Okay okay :smile: I don't have time for this today. I hope i'll find some time tomorrow. If someone has ported the tcpclient to unix that would be great, if not I have to write it myself. The only other machine beyond this one are unix machines. Let me know if anyone has a quick something that I can test with. ( As said the problem doesn't occur when the tcpip connection is local )

Ron
October 13th, 2002, 12:55 PM
Okay, I've been looking into this but the TCPIP server source that I have is not the newest one, I've emailed Jay hoping that he'll share the code.

My findings: If you enable quiet mode the plugin gets stuck in the loop, so temp fix is to DISABLE the quiet mode.

Ron
October 13th, 2002, 12:55 PM
For the interested people, this is the code that i used to test, mostly written by desmo.

http://www.girder.nl/download.php?Link=226

Ron
October 13th, 2002, 12:55 PM
Yep, just apache ( or whatever ) and php.

Mastiff
October 13th, 2002, 12:55 PM
I have a possibly related problem: When Girder on my Win2K Advances Server receives a TCP/IP-command it freezes the whole system. It is actually the only thing I've found that can freeze such a stable operating system totally!

<font size=-1>[ This Message was edited by: mastiff on 2002-02-27 18:12 ]</font>

Mastiff
October 13th, 2002, 12:55 PM
[quote]
On 2002-02-27 18:38, RonB wrote:
Cool :cool:

Yeah, right! :wink: Well, it doesn't bother me all that much anymore since I've bought a set of remote extenders (actually three sets, but who's counting?) and use an extra receiver for the server, so I don't need the TCP/IP stuff. Still it would be nice to have this sorted out.

desmo
October 13th, 2002, 12:55 PM
Im away from my machine, but Ive had the same problems with TCPIP plugin before.
Im pretty certain the quiet mode switch resolved this for me - just cant remember which way round - I *think* I needed it to be quiet ie no response.

<font size=-1>[ This Message was edited by: desmo on 2002-02-27 20:42 ]</font>

desmo
October 13th, 2002, 12:55 PM
I was using PHP to send the TCPIP strings rather than the client, and definitely had the same symptons.
The appeal of TCPIP over IR is ofcourse the data it can return to your "Remote" so it would be useful to find the root of this.

desmo
October 13th, 2002, 12:55 PM
Tigerarch
Thats exactly what I use it for, have a look at this thread (http://www.girder.nl/phpBB/viewtopic.php?topic=1100&forum=2) which describes the system in some detail and provides a link to the all the necessary files. I use M$ IIS but dont see any reason why Apache wouldnt work.

edit:
Ooops just spotted the obvious reason Apache probably wont do it - I use the MS XML ActiveX object on the server - sorry!
Though the code might well serve as a springboard for your needs.
/edit

If you just want the pertinent bit of PHP (that sends the strings via TCPIP to girder), Ive put it up here (http://attree.co.uk/audrey/msggirder.php) - it should be dead easy to customise it to your needs.
Good luck and let us know what you end up with.

PS Didnt mean to badger you Ron!

<font size=-1>[ This Message was edited by: desmo on 2002-03-01 03:23 ]</font>

<font size=-1>[ This Message was edited by: desmo on 2002-03-01 03:34 ]</font>

desmo
October 13th, 2002, 12:55 PM
Tiger
Ron has done a very nice job of making it easy to use.
Just install PHP (all the defaults work for me), put the Rons script in a folder with script enabled (ugh memories of Apache configuration) and call the script from a browser.
The Girder end of it is exactly like you were using the tcp client.

tigerarch
October 13th, 2002, 12:55 PM
When I send a tcp/ip command to girder from the host computer, everything works great. However, when I send a command over the network from a client computer, girder goes from using 0 resources to 100. This does not stop until I close Girder. It shouldn't take that much of CPU power should it?

tigerarch
October 13th, 2002, 12:55 PM
If I enable quiet mode in girder, and run the command from the client machine, the tcpclient2.exe dos box stays open and the status bar at the bottom of Girder says TCPIP Connect. The dos box will not close by itself unless I manually close it, the the status bar at the bottom of Girder says TCPIP Disconnect. In other words, turning on quiet mode doesn't work.

tigerarch
October 13th, 2002, 12:55 PM
desmo,
How are you using PHP to send commands to girder? Is it embedded in a webpage? I'm not that familiar with PHP, but if it means I don't have to use the dos box, I would like to learn more. I would like to be able to send commands to Girder through a simple Web interface from every computer in the house. I have a linux box setup with a web server that I can use to serve pages for the intranet, but no idea how to pass commands via PHP over TCP/IP. If you could help out, that would be great! Thanks.

tigerarch
October 13th, 2002, 12:55 PM
desmo,
Can I use that bit of PHP code without having anything else but PHP installed on the web server?

tigerarch
October 13th, 2002, 12:55 PM
Thanks Ron! I'm not sure exactly how to use it yet, but I will read up on PHP and figure it out. Let us know what you find out about the TCP/IP server. Thanks!

Promixis
October 21st, 2002, 05:57 PM
Just wondering if there is a fix for this. I am also having problems with the client using 100% cpu. I am not sure how to disable the quiet mode.

Mike

Ron
October 21st, 2002, 09:53 PM
This is not an issue anymore with the IES/IEC.

s
October 22nd, 2002, 03:45 AM
Does anyone know how to get http://www.attree.co.uk/RCML/
RCML to work with the new TCP server?

Promixis
October 22nd, 2002, 05:15 AM
Ron, is the new IES/IEC part of the current girder download? If so, then I have it.

Do I need to close connections?

Ron
October 22nd, 2002, 05:33 AM
Yes it is part of the latest distro's and yes you need to send "close\n" that is part of the protocol as described in the readme.

Mark F
October 22nd, 2002, 01:28 PM
s -

I *THINK* the attached .zip file contains a replacement .php file that *MIGHT* work with the new IES. I'm non-comittal because:

I've never written a .php file in my life (until now)
I don't own software that will execute a .php file so I haven't tested this out


Before using this, PLEASE back up your current version of msggirder.php!

All I did was a cut/paste/merge of code in the girder\help directory so I hope it works. :)

EDIT: If you already downloaded this file, please do it again. Stupid error!

EDIT2: Better yet, download the one Ron has uploaded! ;)

Ron
October 22nd, 2002, 01:50 PM
ahum, I saw ;-)

Anyway I've got a tested version,.. would I offend Mark if I uploaded it ?

Mark F
October 22nd, 2002, 01:55 PM
I would be outraged!!!

:lol:

BTW, was I at least CLOSE to right?

Ron
October 22nd, 2002, 01:58 PM
hmm in that case,.. better not..

aaah what the hell :evil:

php test (http://www.stack.nl/~stilgar/msggirder.php) (won't be there for long since there is a possibility to abuse this ;-) )

edit1: hmm,.. I didn't look at your corrected example... Let me check
edit2: hey, you removed it before I could pass harsh judgement :-)

edit3: Even better then my example, get Mark's file ;-)

Mark F
October 22nd, 2002, 02:32 PM
Uh oh. I wasn't making a generic example. I was altering a working .php file (from here (http://www.attree.co.uk/RCML/download/RCML-V0_1.zip)) to use the new protocol.

I don't know if it needs all the extra header and form stuff so I've attached the changed one again.

Ron
October 22nd, 2002, 02:37 PM
Aaah my mistake! I thought you said you modified the one from help directory.

izone
October 22nd, 2002, 02:46 PM
Mark, thats it!!

It works perfectly, thank you very much.
Where should i send my first born? :D

Mark F
October 22nd, 2002, 03:03 PM
Cool! I guess I'll add "Expert .php programmer" to my resume. :D