In windowsServer2012R2 system running on the server springBoot jars + tomcat startup war file, and matlab, redis, database is oracle12c, just start not an error, virtual memory ran for two days and then disk c account for full, oracle12c service automatically closed, recovered, after restart the server disk c, this is what problem,? Genuflect is begged
CodePudding user response:
That estimate is where your program has a memory leak, check the code, is there a subject of global references, lead to these objects cannot be garbage collected,
CodePudding user response:
reference 1st floor qybao response: where estimate is your programs that have a memory leak, check the code, is there a subject of global references, lead to these objects cannot be garbage collected, but I run on win10, there is no problem, the code should have no problem CodePudding user response:
Check the tomcat, matlab, redis and oracle version number, you Win10 system and WinServer above the software version number, is certainly not the same, Especially the old version of the tomcat version in the long run, will be a problem, may be due to a tomcat and JDK is not compatible, Specific reason, I also don't know what's wrong, usually a virtual hard disk memory, is memory leaks, Oracle to memory management is very strict, usually won't appear the status of the memory leak, Redis will that there may be, your program if cached data is resident in memory, never clean the cache (or data without life cycle), to save all the time, will be out of memory, of course, Matlab memory, generally is your experimental data is too large, the execution of a step by step, no free memory, has been accumulating these intermediate results, and then, out of memory, Tomcat few memory, unless you change the boot parameters, or, using Java Native methods, SpringBoot program, if want to out of memory, it's programming problem, the use of this and redis, can only rely on programming experience to avoid, if want to check the reasons, download tools, such as the jmap, check the memory status of the thread of execution, CodePudding user response:
refer to the second floor weixin_41297360 response: but I run on win10, there is no problem, should have no problem code WindowsServer2012R2 and win10 installed software (such as the JDK, orcale) version are the same? If all the same, it is likely to be operating system itself has a memory leak (general Windows open for a long time opportunities are getting slower and slower but also for the system itself has a memory leak). CodePudding user response:
reference 4 floor qybao response: Quote: refer to the second floor weixin_41297360 response: but I run on win10, there is no problem, should have no problem code WindowsServer2012R2 and win10 installed software (such as the JDK, orcale) version are the same? If all the same, it is likely to be operating system itself has a memory leak (general Windows open for a long time opportunities are getting slower and slower but also for the system itself has a memory leak), version of what are all the same CodePudding user response:
reference, 3/f ice rain response: check the tomcat, matlab, redis and oracle version number, you Win10 system and WinServer above the software version number, is certainly not the same, Especially the old version of the tomcat version in the long run, will be a problem, may be due to a tomcat and JDK is not compatible, Specific reason, I also don't know what's wrong, usually a virtual hard disk memory, is memory leaks, Oracle to memory management is very strict, usually won't appear the status of the memory leak, Redis will that there may be, your program if cached data is resident in memory, never clean the cache (or data without life cycle), to save all the time, will be out of memory, of course, Matlab memory, generally is your experimental data is too large, the execution of a step by step, no free memory, has been accumulating these intermediate results, and then, out of memory, Tomcat few memory, unless you change the boot parameters, or, using Java Native methods, SpringBoot program, if want to out of memory, it's programming problem, the use of this and redis, can only rely on programming experience to avoid, if want to check the reasons, download tools, such as the jmap, check the memory status of the thread of execution, jdk1.8 tomcat8.5 should not matlab problem I run the project goes well, I don't run after the project called matlab jar is out of memory, the data quantity is not much, redis set automatically clean up data, the timing of win10 and winServer2012R2 environment are all the same, I just started, and no any action, then it's ok two days later it will fill with virtual memory, the disk c I saw under the task manager I/O write, submit, there is no obvious changes in size, is very strange, is the problem of system CodePudding user response:
Oracle12 most directly accounted for disk file, so I think may be the problem of REDIS, you put the REDIS persistence methods by AOF for RDB try CodePudding user response:
Memory leaks + Windows, traffic increase at a certain moment, application server, caching, with competition from database resources, memory leaks is normal, then do the Windows server natural unreliable, CodePudding user response:
It is recommended that you do with Linux server, Windows thing.it is known,