There are different reasons why you may want to switch companies. You may think that the company that you are working for is not doing too well. You do not want to wait for the time that it will close down and you will end up being jobless. If you think that this is possible, switching to a more stable company is ideal.
You may also want to switch companies if you are not happy with the work that you are doing or the overall environment of the office. Your work may be hindering you from unleashing your skills. If you feel that you are not able to utilize your skills properly, it is time that you leave your company and finds one wherein you can be yourself.
There are instances when you are not sure whether you still want to stay in one company, but you know that the opportunities from another company may be better than what you have now. This is one of the things that you can do right now. You can consider all of the things that you are getting now and decide if you are willing to take a risk. If you are not happy anymore and you know that you need a new environment, then switch to another company.
If in case you are still happy with the company but you know that you are not getting enough compensation, think about it long and hard. Which is more important to you? Do you want to be at peace knowing that you are comfortable in the company or you would rather focus on your security at this point?