LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview crashes when web servers is enabled

All my labview programs work fine. But when i try to use the web publishing and web server tools the program crashes frequently and randomly. The moment i stop doing so the programs run fine. Any ideas what might be causing this and any way out. The platform is Win XP and there should not be a hardware problem becuase there is 512MB physical RAM and a P4 processor.
0 Kudos
Message 1 of 8
(3,386 Views)
Which version of LabVIEW are you using? Does LabVIEW throw any error when it crashes? It sounds like a server problem, so you might want to try using a different port.
0 Kudos
Message 2 of 8
(3,386 Views)
Thanks for the response.
I am currently using 6.1. Some times there is a generic windows error message when the program crashes waiting for a user input other times (mostly) the program just disappears from the computer screen without any error message as if it was never started.
Also, i have had the exact same problem when the computer was connected to a different network, however that computer was really old and short on memory. When i moved my test to a new location i replaced the old computer with a new one and it is also a part of a new much faster network. I am also able to access the published web pages from other locations via the web successfully a few times before the program crashes.
I have not understood clearly what you mean by different por
t,
Once again thanks for the response.
0 Kudos
Message 3 of 8
(3,386 Views)
I came across this knowledgebase that seems to apply to your issue. Take a look at it and see if it helps you at all.

http://digital.ni.com/public.nsf/websearch/4C3F86E655E5389886256BA00064B22F?OpenDocument
0 Kudos
Message 4 of 8
(3,386 Views)
Thanks for the link Tyler,
I also found the following link that refers to the link you sent above:
http://securitytracker.com/alerts/2002/Apr/1004136.html
There is one difference though, the text in the above site reccomends that the web logging should be disabled at one point and in another statement it states that the web server will crash only if logging is disabled.
Thus far in all my tests logging was disabled and i was experiencing random crashes. But for the past 18 hours i have been accessing another test with the logging enabled and it seems to be working fine (at least till now).
The link that you sent also reccomends to turn off logging which is just the reverse of what i am experiencing right now. I will continue to monit
or the performance with logging enabled and also with logging disabled (when i can afford to do so) and post my experience again in some time.
Meanwhile i would appreciate if you have any further comments or thoughts about this issue.
Thanks
Amit
0 Kudos
Message 5 of 8
(3,386 Views)
Reading through both documents, I think they are consistent in recommending that you disable logging. It is very strange, though, that you are experiencing the opposite problem. Have you looked in your log file to see if there are any specific errors when it crashes? Also, try communicating through different ports. If something else is trying to communicate through the same port as you, it could definitely crash your application.
0 Kudos
Message 6 of 8
(3,386 Views)
My test program ran successfully for more than 24 hours with the vi accessed via the web over a hundered times during the test. When I checked the log file it had details of every IP address from whcih I had accessed the vi but no details pertaining to any crash becuase there was none. The vi finally crashed after more than 24 hours when somebody tried to use the same computer to access the internet, probably because of some conflict as you have mentioned.
I repeated my test, this time with the logging disabled and right after the first time i tried accessing the vi using a different computer it crashed, all this within 5 minutes, and since web logging was disabled there was no record of the details pertaining to the cras
h.
Also the ealier link that I posted has following sentence at the end: "The server crashes only when the Web Server logging is disabled" which is exactly what I experience. I have also emailed the author of this page about this problem but i havent heard from him yet. Are there any other posts from NI about this problem? (other than the one that you already mentioned) becuase I couldnt find any.
Also, I am still not clear as to how I can change the port of communication to avoid conflicts.
Thanks
Amit
0 Kudos
Message 7 of 8
(3,386 Views)
You can change the port used for the web server by going to Tools>>Options>>Web Server:Configuration and typing in whatever HTTP port you want to use. The default is 80. As for other posts, I have not been able to find any others. I'll see if I can come up with any other solutions though.
0 Kudos
Message 8 of 8
(3,386 Views)