I am noticing much more hair loss during my illness. i have tonsilitis at the moment. is there some connectiong between hairloss and imunesystem ?

Stress can sometimes cause hair loss, though usually, it would take an extreme case of stress (medical or emotional). While there are instances of hair loss from immune system issues, the immune system as you are implying is not likely the cause of hair loss. To make it a bit confusing, alopecia areata is thought to be hair loss related to immune system issues.

Tonsillitis does not cause hair loss.

Balding Forum - Hair Loss Discussion

Paid advertisements (not an endorsement):