I am migratin my application from CFML to Lucee. Here I am trying to generate Excel file with xml data. For less data where server takes less time to process it is working fine but for large data like 50000 rows server is processing for longer time and in between like after 3 - 5 minutes, I am getting “502 Proxy Error”. Attaching the image of the error here:
line in my apache2.conf code, I added it, restarted Apache, but issue was not resolved. Additionally after adding this line when I am redirecting to my home page it is looking for “index.cfm” file, but I have configured apache to look for some other file. That is why I removed it.
Did you adapt the line above to work with your environment, or not? Because just adding it can’t work. And also: this line should only affect your index welcome page. And: The port is different, your configuration in apache2 uses 8008, and also is your proxy domain name. Let’s forget that for now… If @Julians post didn’t help, first thing to do is to see what Tomcats direct reponse looks alike. That means… Try accessing your big excel file through your Tomcat port directly, bypassing Apache2: That should work if you generate it by browsing from that machine locally to port 8008 (I can see that port configurated in your apache2.conf, so I’m assuming you are running Lucee on 8008). Can you load the excel file from Tomcat directly or is it generating an error?
Thanks @Julian_Halliwell, I am getting same error when I am generating report in HTML format, with lot of queries to fetch data. So I think this error is not because of Excel file size but this is because of late response from the server.
Thanks for the reply @andreas. I tried accessing through the Tomcat directly bypassing Apache and after a long processing I got different error which is ERR_EMPTY_RESPONSE, pasting the image of the error bellow.
We are hosting application with a hostname “foo.domain.com” and in a custom port “7444” via apache. where the url would be “https://foo.domain.com:7444/”. The lucee/tomcat is installed in 8008 port.
I see 2 things here,
Poor performance, though the RAM is 32 GB (-Xms2g -Xmx8g). No cache configurations made in server admin console.
When accessing report(s), like 20K records seeing the proxy error. In the apache log, i see the below:
[Wed Dec 16 04:56:25.475340 2020] [proxy_http:error] [pid 25777:tid 140362232338176] (20014)Internal error (specific information not available): [client 153.64.42.163:59529] AH01102: error reading status line from remote server 127.0.0.1:8008
[Wed Dec 16 04:56:25.475471 2020] [proxy:error] [pid 25777:tid 140362232338176] [client 153.64.42.163:59529] AH00898: Error reading from remote server returned by /page.cfm
We are go to production on 18-Dec-2020. Please help here to fix the problem.
Thanks for everyone who are helping here.
Regards,
Madhusudhana
turn on debugging, including implicit variable access, the main problem is your code is slow,
I suspect you have some scope problems, fixing that will help a lot