sentence: kranji served as a military camp before the japanese invasion of singapore in 1942 , and is now the home of the kranji war cemetery and kranji war memorial , commemorating the 30,000 commonwealth personnel who died in singapore , malaya , java and sumatra during world war ii .