In fact, the first and most important thing you should do it find out the reasons why you get the eye ulcers, then I think you will treat it easily. According to the medical experts, the ulcers can be caused by a tear in the cornea, and if the tears get infected, you are more likely to get the eye ulcers, which are very painful. If so, you can just use some prescribe cycloplegic eye drops to prevent infection, which will promote healing. Also, if you wear contact lenses for long time, there are also more possibilities to get the ulcer, then what you should do is that just put off your lenses and ask your doctor to clean and wash your eyes. If you find your eye ulcer is more serious, you had better go to your personal eye doctor and he will check and treat it for you. However, before going to doctor's, you can take some measures to stop the pain, for example, a cold compress and ibuprofen an help you to finish it. Hope you can make it, and good luck.