Let $f_n:=\frac{x}{n}\exp(-\frac{x}{n})$. I want to analyse, if $f_n$ is uniformly convergent on every compact interval. I could show that it converges pointwise to $f(x)=0$ and that for any $n \in \mathbb N$, we have that on the interval $[0,n]$ that $f_n(x)$ is bounded by $\frac{1}{e}$ and hence it is not uniformly convergent. But I miss now the last part, to conclude. Any help would be appreciated.
EDIT: Let $[a,b] \subset \mathbb R$ with $a\leq b$. I want to bound the following expression: $$\sup\{\|\frac{x}{n}\exp(-\frac{x}{n})\|:x \in [a,b]\}$$ If the following equality holds: $$\sup\{\|\frac{x}{n}\exp(-\frac{x}{n})\|:x \in [a,b]\}\leq \sup\{\|\frac{x}{n}\|:x \in [a,b]\} \times \sup\{\|\exp(-\frac{x}{n})\|:x \in [a,b]\}$$ we are done by taking the maximum in absolut value between $a$ and $b$, since then the first term goes to zero as n goes to infinity.
Choose any interval $[a, b]$.
To bound $f_n$ on $\mathbb{R}$ compute $$ \frac{\mathrm{d}}{\mathrm{d}x} \frac{x}{n}\exp\left(-\frac{x}{n}\right) = -\frac{(x-n)\exp\left(\frac{x}{n}\right)}{n^2}. $$ So there is a unique critical point at $x=n$. It is very easy to prove that this is a global maximizier on $\mathbb{R}$ for all $n \in \mathbb{N}$. So for very large $n$ the maximizer leaves $[a, b]$ and the maximum on $[a, b]$ is attained at either $a$ or $b$. Note that $$ \lim_{n \rightarrow \infty} \max_{x \in [a, b]} \lvert f_n(x) \rvert = \lim_{n \rightarrow \infty} \left \lvert \frac{y}{n}\exp\left(-\frac{y}{n}\right) \right \rvert = 0 $$ for $y \in \lbrace a, b \rbrace$ no matter the (fixed) values of $a$ or $b$.
So we indeed have uniform convergence on any compact subinterval.