In my opinion dear, you need to have a good check up by your doc. From what you are describing you may have a urinary tract infection. Normally it is harder for a man to get a bladder infection than it is for a woman, because their urethra is longer - making it harder for the bacteria to climb up the urethra and into the bladder - But the symptoms you describe are consistent with a uti. The only thing that I can think of is the fact that you are masturbating frequently may be how you are introducing the bacteria into the urethra.
Normal urine is sterile. It contains fluids, salts, and waste products, but it is free of bacteria, viruses, and fungi. An infection occurs when microorganisms, usually bacteria from the digestive tract, cling to the opening of the urethra and begin to multiply. Most UTIs arise from one specific type of bacteria, Escherichia coli, or E. coli, which normally lives in the colon.
In most cases, bacteria start growing in the urethra. An infection that is limited to the urethra is called urethritis. From the urethra bacteria often move to the bladder, causing a bladder infection, called cystitis. If the infection is not treated right away, bacteria then goes up the ureters and infects the kidneys, called pyelonephritis.
Microorganisms called chlamydia and mycoplasma can also cause UTI's in both men and women. However, these type infections tend to remain in the urethra and reproductive system. Unlike E. coli, chlamydia and mycoplasma can be sexually transmitted. Infections caused by chlamydia or mycoplasma require treatment of both sex partners.
The urinary system is structured in a way that helps prevent infection. The ureters and bladder normally prevent urine from backing up toward the kidneys. The flow of urine from the bladder helps wash bacteria out of the body. In men, the prostate gland produces secretions that slow bacterial growth. Immune defenses also prevent infection in both men and women. Despite your body's safeguards, infections can still occur.
Various medicines are available to relieve the pain of a UTI. A heating pad or a warm bath may also help. Most doctors suggest drinking plenty of water to helps cleanse the urinary tract of bacteria. It is best to avoid coffee, alcohol, and spicy foods if you have a UTI. One of the best things a smoker can do for the bladder is to quit smoking. Smoking is the major known cause of bladder cancer.
I hope this information has helped answer some of the questions you might have, if not I am listing a web page for you to go to that might be more helpful.
Good luck to you, and see your doctor soon if symptoms worsen.