add aoutodetect of SO architecture and sets direct memory accordling and sets MAXHEAP var only one time :
add aoutodetect of SO architecture and sets direct memory accordling and sets MAXHEAP var only one time :

https://github.com/orientechnologies/orientdb/issues/6165

https://github.com/orientechnologies/orientdb/issues/4857

orientechnologies/orientdb,orientechnologies/orientdb,orientechnologies/orientdb,orientechnologies/orientdb