Note that there are some explanatory texts on larger screens.

plurals
  1. POwhat happens when changing from DEV to PROD mode in "application.conf" file?
    primarykey
    data
    text
    <p>I am using play framework 1.2.5, for past two days I had a very big issue on load testing that is for every API call to the sever it takes around 1200-1400ms as average, but today I just changed the following only one line in the file <strong>application.conf</strong> which dramatically reduces the average time to <strong>20 - 50 ms</strong> , the line as follows, </p> <pre><code> application.mode=prod %prod.application.mode=prod </code></pre> <p>initially it was like </p> <pre><code> application.mode=dev %prod.application.mode=prod </code></pre> <p>So from this I could understand that changing from dev to production makes something and what I found in Internet is, In <strong>dev</strong> mode <strong>play.pool=1</strong> by default whereas in production mode <strong>play.pool = no of processors + 1</strong>, my ubuntu machine is 4 processor so it uses 5 thread. Now coming to the Problem,if what I found is true then when I change the play.pool = 5 manually in the <strong>application.conf</strong> does not gives me a faster result neither if i set play.pool=1 and run in production mode also doesnot slows down my application loadtest results, So I need to know what happens when I change from dev to prod mode, other than this play.pool which makes my application faster. because I am facing problem In UAT where no good results for changing in prod mode also, it only works in my localhost.please find me a solution sooner thanks in Advance.</p> <p>UPDATE : </p> <p>Yes I do know all those stuffs like in DEV mode the application reloads and compiles but, perhaps its not for each and every request only at the initial program loading i think , but my Problem is <strong>this prod mode working fine at my localhost and my local server, when I go for UAT I get a bad results at load test around 800ms</strong> as average. the application is slow even in prod even I am performing the loadtest locally(the jmeter is installed in the server machine and I am load-testing it using Remote Desktop Connection). So other than compilation and reloading, I need to know what are all the changes performed in the application.conf file when I change from DEV to PROD mode like the play.pool changes from 1 thread to (no of processors + 1) thread. <strong>FYI: my localhost system is 4 processor machine, and local server machine is 4 processor, but the UAT machine is 2 processor, if this is the issue I even tried of changing the pool threads to 10(play.pool=10) and no good results at UAT.</strong> </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload