From Apple
Can your Mac use El Capitan?
OS X El Capitan requires at least 2GB of memory and 8.8GB of storage space.
I would double the memory, as that's the minimum.
For Firefox have a look at the activity around the time it hangs. Utilities -->> Console.