On the outbreak of the war with Japan, "K VIII" was in Surabaya, held in reserve. In January 1942 "K VIII" was deployed with the crew from which had been damaged due to a battery explosion. "K VIII" patrolled the Java Sea and the Madura Strait, but made no attacks on enemy ships. After the invasion of Java by the Japanese armed forces "K VIII" fled to Fremantle.