<div dir="ltr">Hi Sean,<div><br></div><div>can you explain what you mean by "<span style="font-family:arial,sans-serif;font-size:13px">keeping you from handling multiple simultaneous requests." ?</span></div><div>
<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Moreover, is your URLs in your configuration consistent?</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Seb</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 23, 2014 at 2:43 PM, Scott Wittenburg <span dir="ltr"><<a href="mailto:scott.wittenburg@kitware.com" target="_blank">scott.wittenburg@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Sean,<div><br></div><div>   Yeah, that could be a problem, though I'm not an Apache expert.  I looked up the mpm prefork version you appear to be running:</div>
<div><br></div><div><a href="http://httpd.apache.org/docs/current/mod/prefork.html" target="_blank">http://httpd.apache.org/docs/current/mod/prefork.html</a><br>
</div><div><br></div><div>   The docs there say that it is important to set the "MaxRequestWorkers" directive so that it is "big enough to handle as many simultaneous requests as you expect to receive, but small enough to assure that there is enough physical RAM for all processes."  So I guess this may be keeping your Apache from handling multiple simultaneous requests.  </div>

<div><br></div><div>   I'm not running Apache MPM Prefork, and when I set my LogLevel to debug, I see lines that look like the following:</div><div><br></div><div><div>[Mon Jun 23 14:34:34.183747 2014] [proxy:debug] [pid 20818:tid 139804845111104] proxy_util.c(1694): AH00925: initializing worker <a href="http://localhost:9000/paraview" target="_blank">http://localhost:9000/paraview</a> shared</div>

<div>[Mon Jun 23 14:34:34.183843 2014] [proxy:debug] [pid 20818:tid 139804845111104] proxy_util.c(1734): AH00927: initializing worker <a href="http://localhost:9000/paraview" target="_blank">http://localhost:9000/paraview</a> local</div>

<div>[Mon Jun 23 14:34:34.183889 2014] [proxy:debug] [pid 20818:tid 139804845111104] proxy_util.c(1769): AH00930: initialized pool in child 20818 for (localhost) min=0 max=25 smax=25</div></div><div><br></div><div>   Perhaps someone else in the community has more insight into what could be keeping you from handling multiple simultaneous requests.</div>

<div><br></div><div>Cheers,</div><div>Scott</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Jun 23, 2014 at 12:57 PM, CLSA Mcmaster <span dir="ltr"><<a href="mailto:clsamcmaster@gmail.com" target="_blank">clsamcmaster@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi Scott,<br><br></div>Could this be the problem: <br><br>[Mon Jun 23 14:55:26.<a href="tel:475835%202014" value="+14758352014" target="_blank">475835 2014</a>] [mpm_prefork:info] [pid 5029] AH00164: Server built: Apr  3 2014 12:20:28<br>

[Mon Jun 23 14:55:26.<a href="tel:475847%202014" value="+14758472014" target="_blank">475847 2014</a>] [core:notice] [pid 5029] AH00094: Command line: '/usr/sbin/apache2'<br>
[Mon Jun 23 14:55:26.<a href="tel:475852%202014" value="+14758522014" target="_blank">475852 2014</a>] [mpm_prefork:debug] [pid 5029] prefork.c(995): AH00165: Accept mutex: fcntl (default: sysvsem)<br>[Mon Jun 23 14:55:26.476141 2014] [proxy:debug] [pid 5037] proxy_util.c(1694): AH00925: initializing worker proxy:reverse shared<br>


[Mon Jun 23 14:55:26.476167 2014] [proxy:debug] [pid 5037] proxy_util.c(1734): AH00927: initializing worker proxy:reverse local<br>[Mon Jun 23 14:55:26.476193 2014] [proxy:debug] [pid 5037] proxy_util.c(1785): AH00931: initialized single connection worker in child 5037 for (*)<br>


<br></div>Note is reports " initialized single connection worker". Maybe that's correct but it is allowing only a single connection.<br><br></div>Thanks,<br></div>Sean.<br><div><div><div><br></div></div></div>


</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 19, 2014 at 4:28 PM, Scott Wittenburg <span dir="ltr"><<a href="mailto:scott.wittenburg@kitware.com" target="_blank">scott.wittenburg@kitware.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Sean,</div><div><br></div>Your setup should allow for multiple uses to connect simultaneously.  If you tried this and it failed, can you let us know what error you saw?  Also, that "port_range" is inclusive of all the ports in between 9001 and 9103.<div>



<br></div><div>Cheers,</div><div>Scott<div><div><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 19, 2014 at 2:11 PM, CLSA Mcmaster <span dir="ltr"><<a href="mailto:clsamcmaster@gmail.com" target="_blank">clsamcmaster@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hello Sebastien<br><br></div>I am able to access Paraview web. The one remaining issue is only one user can access at a time. So my last question, hopefully, is with regard to port ranges. The launch.json file from the example looks like this:<br>




<br>"port_range": [9001, 9103]<br><br></div>For clarification, is that a range from 9001 to 9103 or is it individual ports 9001 and 9103?<br><br></div>Thank you.<br><br></div>Sean.<br></div><div>
<div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Jun 19, 2014 at 10:57 AM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Sean,<div><br></div><div>if you have a user logged in with a "DISPLAY", you just need to run "export DISPLAY=:0.0" before running your launcher.</div>




<div>So when your launcher trigger a new viz job, it inherits that property.</div>
<div><br></div><div>You can try again with your command line and see if you get the same error when you export the display first.</div><div><br></div><div>But anyhow, you need a GPU and a X session running. And make sure you have the latest drivers as well for better performances.</div>





<div><br></div><div>Otherwise, if you don't have a GPU, then you will need to build ParaView with OS Mesa.</div><div><br></div><div>Seb</div></div><div><div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Thu, Jun 19, 2014 at 7:44 AM, CLSA Mcmaster <span dir="ltr"><<a href="mailto:clsamcmaster@gmail.com" target="_blank">clsamcmaster@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hello<br><br></div>I think I have found the problem. When I run the launcher from the CLI as follows:<br>





<br> pvpython /data/pvw/paraview/lib/paraview-4.1/site-packages/paraview/web/pv_web_visualizer.py -d --content /data/pvw/www --data-dir /data/pvw/data --port 8080<br>
<br></div>And then access the URL I get the following error:<br><br>[19/Jun/2014:13:37:10 +0000] "POST /paraview/ HTTP/1.1" 404 145 "<a href="http://paraview.domain.ca:8080/apps/Visualizer/" target="_blank">http://paraview.domain.ca:8080/apps/Visualizer/</a>" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0"<br>






ERROR: In /usr/local/src/paraview/4.1.0/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 531<br>vtkXOpenGLRenderWindow (0x328b7c0): bad X server connection. DISPLAY=Aborted (core dumped)<br><br></div>I'm not sure why I don't see this error or generate a core dump when using the configuration file.<br>






<br></div>In any case, we are using the 64bit binaries for Linux (Ubuntu 14.04). Do we need to compile our own Paraview 4.1? We are having difficulty compiling OSMesa support due to missing libraries.<br><br></div>Thanks, again.<br>






<br></div>Sean.<br><div><div><div><div><br></div></div></div></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 18, 2014 at 10:44 AM, CLSA Mcmaster <span dir="ltr"><<a href="mailto:clsamcmaster@gmail.com" target="_blank">clsamcmaster@gmail.com</a>></span> wrote:<br>






<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hello Sebastien<br><br></div>Thank you for the very quick reply.<br><br></div>I am following this document: <a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/#!/guide/ubuntu_14_04" target="_blank">http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/#!/guide/ubuntu_14_04</a><br>







<br></div>I am using paraview version 4.1.0.<br><br></div>I get the same result if I go directly to port 8080. I am running in debug mode but I am not seeing anything at all helpful. Firebug shows me:<br><br><div selected>







<pre><code>{"id": "103b792a-f6ee-11e3-b1d5-14feb5ee4ae2", "host": "<a href="http://paraview.domain.ca" target="_blank">paraview.domain.ca</a>", "port": 9103, "sessionManagerURL"</code><code>: <br>







"<a href="http://paraview.domain.ca:8080/paraview/" target="_blank">http://paraview.domain.ca:8080/paraview/</a>", "sessionURL": <br>"ws://<a href="http://paraview.domain.ca/proxy?sessionId" target="_blank">paraview.domain.ca/proxy?sessionId</a></code><code>=103b792a-f6ee-11e3-b1d5-14feb5ee4ae2"}</code></pre>







</div>Followed by:<br><br><span><div><span>Firefox
 can't establish a connection to the server at 
ws://<a href="http://paraview.mcmaster.ca/proxy?sessionId=103b792a-f6ee-11e3-b1d5-14feb5ee4ae2" target="_blank">paraview.mcmaster.ca/proxy?sessionId=103b792a-f6ee-11e3-b1d5-14feb5ee4ae2</a>.<br><br></span></div><div><span>My Apache config is as follows:<br>







<br><VirtualHost *:80><br>      ServerAlias   <a href="http://paraview.domain.ca" target="_blank">paraview.domain.ca</a><br>      ServerAdmin  <a href="mailto:webmaster@domain.ca" target="_blank">webmaster@domain.ca</a><br>






      DocumentRoot /data/pvw/www<br>
<br>      ErrorLog /data/logs/error.log<br>      CustomLog /data/logs/access.log combined<br><br>      # Handle launcher forwarding<br>      ProxyPass /paraview <a href="http://dragonfly.domain.ca:8080/paraview" target="_blank">http://dragonfly.domain.ca:8080/paraview</a><br>







     <br>      # Handle WebSocket forwarding<br>      RewriteEngine On<br>      RewriteMap  session-to-port  txt:/data/proxy.txt<br>      RewriteCond %{QUERY_STRING}  ^sessionId=(.*)$               [NC]<br>      RewriteRule ^/proxy.*$       ws://${session-to-port:%1}/ws  [P]<br>







<br>        <Directory "/data/pvw/www"><br>        Options Indexes FollowSymLinks<br>        Order allow,deny<br>        Allow from all<br>        AllowOverride all<br>        Require all granted<br>        </Directory><br>







<br></VirtualHost><br><br></span></div><div><span>And the launcher.py config file:<br></span><br></div></span>{"configuration":<br>        {"content":<br>                "/data/pvw/www",<br>







                "log_dir": "/data/pvw/logs",<br>                "host": "192.168.1.110",<br>                "endpoint": "paraview",<br>                "sessionURL": "ws://<a href="http://paraview.domain.ca:8080/" target="_blank">paraview.domain.ca:8080/</a>",<br>







                "timeout": 5,<br>                "upload_dir": "/data/pvw/data",<br>                "fields": ["file", "host", "port", "updir"], "port": 8080,<br>







                "proxy_file": "/data/pvw/conf/proxy.conf"},<br>                "apps": {"data_prober": {"cmd": ["${python_exec}",<br>                "${python_path}/paraview/web/pv_web_data_prober.py", "--port", "${port}", "--data-dir", "${data}"]},<br>







                "pipeline": {"cmd": ["${python_exec}",<br>                "${python_path}/paraview/web/pv_web_visualizer.py",<br>                "--port", "${port}", "--data-dir", "${data}"]},<br>







                "loader": {"cmd": ["${python_exec}",<br>                "${python_path}/paraview/web/pv_web_file_loader.py",<br>                "--port", "${port}",  "--data-dir", "${data}"] }<br>







},<br>        "properties":<br>                {"python_path": "/data/pvw/paraview/lib/paraview-4.1/site-packages/",<br>                "data": "/data/pvw/data",<br>                "python_exec": "/data/pvw/paraview/bin/pvpython"<br>







                },<br>        "resources":<br>                [{"port_range": [9001, 9003], "host": "192.168.1.110"}], "sessionData": {"updir": "/Home"}<br>







                }<br><br><div class="gmail_extra"><br></div><div class="gmail_extra">One thing I've noticed is that different config files show either ${data} or ${dataDIR} but I do not see these variables defined anywhere.<br>







<br></div><div class="gmail_extra">But other than that, I'm stumped.<br><br></div><div class="gmail_extra">Thanks, once more, for your help.<br><br></div><div class="gmail_extra">Sean.<br></div><div><div><div class="gmail_extra">







<br><br><div class="gmail_quote">On Tue, Jun 17, 2014 at 3:35 PM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></span> wrote:<br>







<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I'm not sure to understand that error either.</div><div><br>







</div><div>Which setup did you followed? Which version of ParaView are you using? (release/master)</div><div><br></div><div>
Did you try with a direct connection without apache in the middle? Does that work?</div><div><br></div><div>If so what is your apache setup and launcher.py configuration file?</div><div><br></div><div>Any guidance on your setup may help.</div>








<div><br></div><div>Seb</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Tue, Jun 17, 2014 at 12:21 PM, CLSA Mcmaster <span dir="ltr"><<a href="mailto:clsamcmaster@gmail.com" target="_blank">clsamcmaster@gmail.com</a>></span> wrote:<br>








</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div dir="ltr"><div><div><div>Hello<br><br></div>I feel I am very close to getting this but I need some help.<br>







<br></div>
I am using Paraview with Python and an Apache front end with proxying. My logs show as follows:<br>
<br>[Tue Jun 17 14:18:34.353847 2014] [proxy:debug] [pid 5840] proxy_util.c(2035): AH00943: http: has released connection for (<a href="http://dragonfly.domain.ca" target="_blank">dragonfly.domain.ca</a>)<br>[Tue Jun 17 14:18:34.353905 2014] [deflate:debug] [pid 5840] mod_deflate.c(764): [client <a href="http://192.168.1.9:45352" target="_blank">192.168.1.9:45352</a>] AH01384: Zlib: Compressed 246 to 151 : URL /paraview/, referer: <a href="http://paraview.domain.ca/apps/FileViewer/" target="_blank">http://paraview.domain.ca/apps/FileViewer/</a><br>









[Tue Jun 17 14:18:34.366482 2014] [authz_core:debug] [pid 5843] mod_authz_core.c(828): [client <a href="http://192.168.1.9:45354" target="_blank">192.168.1.9:45354</a>] AH01628: authorization result: granted (no directives)<br>








[Tue Jun 17 14:18:34.366557 2014] [proxy:debug] [pid 5843] mod_proxy.c(1104): [client <a href="http://192.168.1.9:45354" target="_blank">192.168.1.9:45354</a>] AH01143: Running scheme ws handler (attempt 0)<br>
[Tue Jun 17 14:18:34.366566 2014] [proxy_ajp:debug] [pid 5843] mod_proxy_ajp.c(708): [client <a href="http://192.168.1.9:45354" target="_blank">192.168.1.9:45354</a>] AH00894: declining URL ws://<a href="http://192.168.1.110:9103/ws?sessionId=c83abd36-f64b-11e3-b1d5-14feb5ee4ae2" target="_blank">192.168.1.110:9103/ws?sessionId=c83abd36-f64b-11e3-b1d5-14feb5ee4ae2</a><br>









[Tue Jun 17 14:18:34.366577 2014] [proxy_http:debug] [pid 5843] mod_proxy_http.c(1892): [client <a href="http://192.168.1.9:45354" target="_blank">192.168.1.9:45354</a>] AH01113: HTTP: declining URL ws://<a href="http://192.168.1.110:9103/ws?sessionId=c83abd36-f64b-11e3-b1d5-14feb5ee4ae2" target="_blank">192.168.1.110:9103/ws?sessionId=c83abd36-f64b-11e3-b1d5-14feb5ee4ae2</a><br>









[Tue Jun 17 14:18:34.366583 2014] [proxy_wstunnel:debug] [pid 5843] mod_proxy_wstunnel.c(331): [client <a href="http://192.168.1.9:45354" target="_blank">192.168.1.9:45354</a>] AH02451: serving URL ws://<a href="http://192.168.1.110:9103/ws?sessionId=c83abd36-f64b-11e3-b1d5-14feb5ee4ae2" target="_blank">192.168.1.110:9103/ws?sessionId=c83abd36-f64b-11e3-b1d5-14feb5ee4ae2</a><br>









[Tue Jun 17 14:18:34.366590 2014] [proxy:debug] [pid 5843] proxy_util.c(2020): AH00942: WS: has acquired connection for (*)<br>[Tue Jun 17 14:18:34.366596 2014] [proxy:debug] [pid 5843] proxy_util.c(2072): [client <a href="http://192.168.1.9:45354" target="_blank">192.168.1.9:45354</a>] AH00944: connecting ws://<a href="http://192.168.1.110:9103/ws?sessionId=c83abd36-f64b-11e3-b1d5-14feb5ee4ae2" target="_blank">192.168.1.110:9103/ws?sessionId=c83abd36-f64b-11e3-b1d5-14feb5ee4ae2</a> to <a href="http://192.168.1.110:9103" target="_blank">192.168.1.110:9103</a><br>









[Tue Jun 17 14:18:34.366665 2014] [proxy:debug] [pid 5843] proxy_util.c(2206): [client <a href="http://192.168.1.9:45354" target="_blank">192.168.1.9:45354</a>] AH00947: connected /ws?sessionId=c83abd36-f64b-11e3-b1d5-14feb5ee4ae2 to <a href="http://192.168.1.110:9103" target="_blank">192.168.1.110:9103</a><br>









[Tue Jun 17 14:18:34.366800 2014] [proxy:debug] [pid 5843] proxy_util.c(2610): AH00962: WS: connection complete to <a href="http://192.168.1.110:9103" target="_blank">192.168.1.110:9103</a> (192.168.1.110)<br>[Tue Jun 17 14:18:34.<a href="tel:574643%202014" value="+15746432014" target="_blank">574643 2014</a>] [proxy_wstunnel:debug] [pid 5843] mod_proxy_wstunnel.c(253): [client <a href="http://192.168.1.9:45354" target="_blank">192.168.1.9:45354</a>] AH02445: woke from poll(), i=1<br>









[Tue Jun 17 14:18:34.<a href="tel:574681%202014" value="+15746812014" target="_blank">574681 2014</a>] [proxy_wstunnel:debug] [pid 5843] mod_proxy_wstunnel.c(262): [client <a href="http://192.168.1.9:45354" target="_blank">192.168.1.9:45354</a>] AH02446: sock was readable<br>








[Tue Jun 17 14:18:34.<a href="tel:574725%202014" value="+15747252014" target="_blank">574725 2014</a>] [proxy_wstunnel:debug] [pid 5843] mod_proxy_wstunnel.c(129): (104)Connection reset by peer: [client <a href="http://192.168.1.9:45354" target="_blank">192.168.1.9:45354</a>] AH02442: error on sock - ap_get_brigade<br>









[Tue Jun 17 14:18:34.<a href="tel:574751%202014" value="+15747512014" target="_blank">574751 2014</a>] [proxy:debug] [pid 5843] proxy_util.c(2035): AH00943: WS: has released connection for (*)<br><br></div>As you can see, I am getting a reset by peer but I'm not sure of the cause. Any help or clues would be greatly appreciated.<br>









<div><div><br></div></div></div>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>