I agree that mining is probably the worst of it, but trucks usually last a decade and a couple million kilometers, after which they’re shipped off to Africa or the Middle East where they’re kept on the road for much longer.
I would not know, here were I live I see most of the heavy duty trucks (owned by small companies at least) with 10-15+ years of service, looking at the license plates.
That depends on how you define "heavy duty". Cement trucks and dump trucks rarely last more than a few years before they need major repairs of transmission and suspension. The frame itself might last more, around 10 years.
I define them as trucks that go and move/carry rocks, dirt, bricks, sand, heavy construction material around, generally to build houses. I'm in Europe, so houses are made of bricks and concrete.