Retired Navy rear admiral Fritz Gleim, 76, a communications officer who served in combat in both the Atlantic and Pacific theaters in World War II, died Tuesday at Holy Cross Hospital after a heart attack.

He was serving in the office of the Secretary of Defense at the time of his retirement in 1957. He then was assistant to the president of the North Electric Co. of Galion, Ohio, working in Washington until suffering a stroke in 1963.

Adm. Gleim was born in Orbisonia, Pa. He grew up in Detriot and served two years with the Merchant Marine and a year of enlistment in the Navy before entering the U.S. Naval Academy at Annapolis, where he graduated in 1927.

He was a damage control officer abroad a cruiser, the USS Raleigh, when it was bombed and torpedoed in the Japanese attack on Pearl Harbor in 1941.

After serving at the Navy Department in Washington in 1942, Adm. Gleim was sent to North Africa and from there participated in the Sicilian and Salerno landings. Hereturned to the Pacific, where he commanded destroyed divisions in some of the major campaigns toward the close of the war. He earned the Legion of Merit and three Bronze Stars.

Adm. Gleim later had shore commands at Norfolk and Key West, Fla., before his final assignment here.

He was a member of the Army and Navy Club.

He is survived by his wife, the former Virginia Jackson, of the home in Washington; two daughters, Betty Viet, of Silver Spring and Gretchen Schwoebel, of Broomall, Pa., and six grandchildren.