Given a positive real number $x$, a sequence $\{a_n(x)\}$ is defined as follows: $$a_1(x)=x\ \ \text{and}\ \ a_n(x)=x^{a_{n-1}(x)}\ \ \ \text{recursively for all}\ n\geq 2.$$Determine the largest value of $x$ for which $\lim_{n\to\infty}a_n(x)$ exists.
I observe that at $x=1$, sequence converges, whereas at $x=2$ sequence diverges. So $1\leq x<2$.
But I am unable to find the largest value. Is it somehow related with derivative? Please help.