KUALA LUMPUR, Malaysia — The Chinese government’s unrelenting criticism of Malaysia’s handling of the disappearance of Flight 370 and an angry protest outside the Malaysian Embassy in Beijing this week have produced a nationalistic backlash here.

Social media in Malaysia has been flooded with criticism of China this week, with many noting that Malaysians as well as Chinese died on the Malaysia Airlines flight. Many on Malay-language social media contend that China is wrong to assail Malaysia during the national mourning that began Monday night, when Prime Minister Najib Razak announced that the flight had disappeared into the stormy waters of the southern Indian Ocean.

Chinese officials’ demands for greater transparency by the Malaysian government in its investigation of Flight 370 have been met with online retorts that China itself has one of the world’s most opaque governments. Many here have been particularly dismayed that relatives and friends of Chinese passengers were able to break through thin screens of police officers in Beijing and march to the Malaysian Embassy.

“I don’t agree with their activities because Malaysia has made a big effort to find the plane,” said Muhamad Hairi Sulaiman, a 35-year-old telecom technician, as he left a special prayer session for Flight 370 passengers and crew at the cavernous National Mosque here Thursday night. “The general view of my friends is that we are shocked that they are biased against Malaysians.”