Alessandro Posted September 29, 2015 Share 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. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 29, 2015 Administrators Share Posted September 29, 2015 How much ram is 98% of yr server? Link to comment Share on other sites More sharing options...
Marlon Nardi Posted September 29, 2015 Share 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? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 29, 2015 Administrators Share Posted September 29, 2015 Is it CPU or RAM? Link to comment Share on other sites More sharing options...
Alessandro Posted September 29, 2015 Author Share Posted September 29, 2015 Marlon: 4 DM, ~50 forms, nenhum frame, utilizo fastReport para gerar relatórios. Link to comment Share on other sites More sharing options...
Alessandro Posted September 29, 2015 Author Share Posted September 29, 2015 Farshad Mohajeri: my server is virtual machine. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 29, 2015 Administrators Share Posted September 29, 2015 Farshad Mohajeri: my server is virtual machine. What are its specs? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 29, 2015 Administrators Share Posted September 29, 2015 And pls specify uniGUI version and edition. Link to comment Share on other sites More sharing options...
Alessandro Posted September 29, 2015 Author Share 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. Link to comment Share on other sites More sharing options...
Marlon Nardi Posted September 29, 2015 Share Posted September 29, 2015 Alessandro pesquise em todo seu projeto e verifique se você esta usando a classe frxChart. Link to comment Share on other sites More sharing options...
rencarnacion Posted September 29, 2015 Share 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 Link to comment Share on other sites More sharing options...
Alessandro Posted September 29, 2015 Author Share Posted September 29, 2015 Marlon, tinha somente um frxChar no mainModule, e foi removido. Link to comment Share on other sites More sharing options...
Phxtecno Posted September 29, 2015 Share Posted September 29, 2015 Hi Ronny, which stress test tools do you mean ? Link to comment Share on other sites More sharing options...
rencarnacion Posted September 29, 2015 Share 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\ Link to comment Share on other sites More sharing options...
Phxtecno Posted September 29, 2015 Share Posted September 29, 2015 Thank you ! I didn't see... Link to comment Share on other sites More sharing options...
Alessandro Posted September 29, 2015 Author Share Posted September 29, 2015 I don´t have "Utils\StressTestTool\"... Where I find it? Link to comment Share on other sites More sharing options...
Skepsis IT Posted October 1, 2015 Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 1, 2015 Administrators Share Posted October 1, 2015 Stress Test tool is only available in commercial edition. Link to comment Share on other sites More sharing options...
Alessandro Posted October 1, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
Skepsis IT Posted October 3, 2015 Share Posted October 3, 2015 4Gb It's fair enough. Did you enables memory leaks? ReportMemoryLeaksOnShutdown := True; For finding out if something goes wrong? 1 Link to comment Share on other sites More sharing options...
Abaksoft Posted October 3, 2015 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now