We have a button that does an AJAX callback and selects rows from our database and loops through them to create a CSV.
The select statement can return a varied 10k-50k rows - because of that it seems the application server gets hung up which causes
a site-wide slowdown (as illustrated in the log below).
Are there any settings I can tweak to have this functionality behave without affecting the rest of the site? I know that it may be long-running..but I need it to complete.
If the Alpha Web Server does not work - is there any other approach/workaround I can take to have this behave appropriately?
Thanks in Advance
Here is my XBASIC Stack Log
Tue Jul 04 15:28:18 2017
Thread: AppServerWorker6
Request URI: /app/__a5RunDialog.a5w?__pageName=AAProcessPayroll.a5w&__dialogFilename=uxProcessPayroll&__alias=UXPROCESSP&__unsaved=no
Line: 351 else
Thread priority reduced.
Thread was busy 99% of the last 20 seconds.
Raw Data: {not sure what this represents, omitted for privacy}
The script causing this behavior is using a lot of CPU time.
You may want to review the page to make sure you have optimized any XBasic scripting.
Long running and processor intensive scripts tend to tie up available threads and adversely affect the perceived performance for multiple users.
Execution Stack:
0#1 evaluate_shared_private(
0#37 OOhttpdServerClientMIME(ptemp,"AppServerMain")
0#2 A5WCallResult = evaluate_a5w_to_response(page_contents,Response,quote(" " + eval_settings.global.Request.ScriptName),eval_settings,EVALUATE_A5W_TIMEOUT,RequestBundle.RequestInfo.Filename.Path)
0#179 x_out = a5_ajax_dialog2(tmpl)
0#351
The select statement can return a varied 10k-50k rows - because of that it seems the application server gets hung up which causes
a site-wide slowdown (as illustrated in the log below).
Are there any settings I can tweak to have this functionality behave without affecting the rest of the site? I know that it may be long-running..but I need it to complete.
If the Alpha Web Server does not work - is there any other approach/workaround I can take to have this behave appropriately?
Thanks in Advance
Here is my XBASIC Stack Log
Tue Jul 04 15:28:18 2017
Thread: AppServerWorker6
Request URI: /app/__a5RunDialog.a5w?__pageName=AAProcessPayroll.a5w&__dialogFilename=uxProcessPayroll&__alias=UXPROCESSP&__unsaved=no
Line: 351 else
Thread priority reduced.
Thread was busy 99% of the last 20 seconds.
Raw Data: {not sure what this represents, omitted for privacy}
The script causing this behavior is using a lot of CPU time.
You may want to review the page to make sure you have optimized any XBasic scripting.
Long running and processor intensive scripts tend to tie up available threads and adversely affect the perceived performance for multiple users.
Execution Stack:
0#1 evaluate_shared_private(
0#37 OOhttpdServerClientMIME(ptemp,"AppServerMain")
0#2 A5WCallResult = evaluate_a5w_to_response(page_contents,Response,quote(" " + eval_settings.global.Request.ScriptName),eval_settings,EVALUATE_A5W_TIMEOUT,RequestBundle.RequestInfo.Filename.Path)
0#179 x_out = a5_ajax_dialog2(tmpl)
0#351
Comment