Alessandro Posted September 29, 2015 Posted September 29, 2015 Good morning. I am developing an application in uniGUI. However I came across something scary recently: By placing the application on the server in the cloud, the application was running for a week nonstop some users began during this period to do some tests. The problem came as I went to visit the server via remote connection and came across the application consuming 98% of CPU and memory !!! It can not exist. Do any of you have any idea about what may be happening or any tips, or perhaps a best practice of how to avoid this extremely wasteful consumption of the server machine? Grateful. Bom dia pessoal. Estou desenvolvendo uma aplicação em uniGUI. No entanto me deparei com algo assustador recentemente: Ao colocar a aplicação no Servidor, na nuvem, o aplicativo ficou rodando por uma semana Ininterruptamente e alguns usuários começaram neste período a fazer alguns testes. Até aí normal. O problema veio quanto eu fui visitar o servidor via conexão remota e deparei com a aplicação consumindo 98% da CPU e Memória!!! Isso não pode existir. Alguém de vocês tem alguma ideia sobre o que pode estar acontecendo ou alguma dica, ou talvez uma melhor prática de como evitar esse consumo extremamente exagerado da máquina servidora? Grato. Quote
Administrators Farshad Mohajeri Posted September 29, 2015 Administrators Posted September 29, 2015 How much ram is 98% of yr server? Quote
Marlon Nardi Posted September 29, 2015 Posted September 29, 2015 Bom dia Alessandro, Quantos Form, Frame e DataModule (UniGui) você possui em sua aplicação? Você utiliza geração de relatórios em sua aplicação, se sim qual ferramenta? Quote
Administrators Farshad Mohajeri Posted September 29, 2015 Administrators Posted September 29, 2015 Is it CPU or RAM? Quote
Alessandro Posted September 29, 2015 Author Posted September 29, 2015 Marlon: 4 DM, ~50 forms, nenhum frame, utilizo fastReport para gerar relatórios. Quote
Alessandro Posted September 29, 2015 Author Posted September 29, 2015 Farshad Mohajeri: my server is virtual machine. Quote
Administrators Farshad Mohajeri Posted September 29, 2015 Administrators Posted September 29, 2015 Farshad Mohajeri: my server is virtual machine. What are its specs? Quote
Administrators Farshad Mohajeri Posted September 29, 2015 Administrators Posted September 29, 2015 And pls specify uniGUI version and edition. Quote
Alessandro Posted September 29, 2015 Author Posted September 29, 2015 Delphi XE5, Win7, 32bits, uniGUI Web Application Framework Version:0.95.0 build 1046 I'm developing with this version, but to launch the system to market, want to buy the final version of uniGUI. Quote
Marlon Nardi Posted September 29, 2015 Posted September 29, 2015 Alessandro pesquise em todo seu projeto e verifique se você esta usando a classe frxChart. Quote
rencarnacion Posted September 29, 2015 Posted September 29, 2015 I guess that version is so Old You should test with the last version I have a big application running and until now the behavior is very good, low memory and CPU Consumption You can test your application with the stress test tools Quote
Alessandro Posted September 29, 2015 Author Posted September 29, 2015 Marlon, tinha somente um frxChar no mainModule, e foi removido. Quote
Phxtecno Posted September 29, 2015 Posted September 29, 2015 Hi Ronny, which stress test tools do you mean ? Quote
rencarnacion Posted September 29, 2015 Posted September 29, 2015 When you install Unigui you can find the tools on the following address in you Unigui Installation c:\Program Files (x86)\FMSoft\Framework\uniGUI\Utils\StressTestTool\ Quote
Alessandro Posted September 29, 2015 Author Posted September 29, 2015 I don´t have "Utils\StressTestTool\"... Where I find it? Quote
Skepsis IT Posted October 1, 2015 Posted October 1, 2015 You must download a more recent version that includes it. StressTest added about 3 or 4 latest builds. Furthermore how much ram has your vm? 1 Quote
Administrators Farshad Mohajeri Posted October 1, 2015 Administrators Posted October 1, 2015 Stress Test tool is only available in commercial edition. Quote
Alessandro Posted October 1, 2015 Author Posted October 1, 2015 You must download a more recent version that includes it. StressTest added about 3 or 4 latest builds. Furthermore how much ram has your vm? 4Gb Quote
Skepsis IT Posted October 3, 2015 Posted October 3, 2015 4Gb It's fair enough. Did you enables memory leaks? ReportMemoryLeaksOnShutdown := True; For finding out if something goes wrong? 1 Quote
Abaksoft Posted October 3, 2015 Posted October 3, 2015 Hello PhxTecnoif you have a big data, the best practice is to- Close DataSet after using them- Don'nt use FetchAll = True On your Dataset - Also very important Set : UniDBGrid.WebOptions.FetchAll = False;- Free all Objects you created on Destroy's form event.Best regards. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.