In my application i am getting the values like password and user access Token in the memory of Tomcat image.When i try to read it using process hacker.
Is there any way to clear this stored values.
In my application i am getting the values like password and user access Token in the memory of Tomcat image.When i try to read it using process hacker.
Is there any way to clear this stored values.
 
    
    Depending on how you get your passwords: If you get them as String already: Almost no chance to get rid of it. If you get them as char[], you can clear the array after use. This question and its answers have a good discussion on the reasons to use char[] for passwords.
Technically, yes, you could trigger garbage collection by calling System.gc(), which has its own problems
