Question Do I need to upgrade Ram or CPU? (see screenshot)

Mar 2, 2019
4
0
10
slhdg9.jpg
I've monitored CPU and Ram usage for some minutes while intensively using my old Asus K52f. As you can see from the picture, RAM is always full and CPU has lots of spikes reaching 100%. Do you think upgrading RAM from 4GB to 8GB would produce any noticeable improvement, considering CPU is intensively used as well?
 
Mar 2, 2019
4
0
10
Of course, I don't care about the 100% spikes themselves, the problem is, my laptop slows down A LOT when CPU goes to 100%.

By the way, I'm running win 7 64 bit. During the observed period I was using Eclipse IDE while playing a YouTube video full-screen on Chrome, having Tomcat server and MySQL database running.
The spikes happen when I play/pause the YouTube video or when executing some Eclipse function.

So, if I do upgrade RAM, do you think CPU will still go to 100% but laptop won't slow down that much?