In which movie does Jim Carrey find out his life is a reality TV show?
The movie you're thinking of is "Man on the Moon" (1999).
While the movie is a biographical portrayal of comedian Andy Kaufman, it features a scene where Andy, played by Jim Carrey, learns that his life is being filmed for a reality TV show.