The Lie algebra sl2(R) of 2 by 2 matrices of trace 0 has two non-conjugate Cartan subalgebras.
The dimension of a Cartan subalgebra is not in general the maximal dimension of an abelian subalgebra, even for complex simple Lie algebras.