Move AwareIm to a new server

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
lineamovil
Posts: 201
Joined: Tue Jul 27, 2010 2:17 am
Location: Mexico

Move AwareIm to a new server

Post by lineamovil »

Hello!

Im going to move AwareIM 5.8 from my server:
From:
MySQL Server,
Windows 2008,
4GB RAM
Core i3 CPU

to a new server:
AwareIM 5.8
MySQL Server
16 GB RAM
1TB HD
XEON procesor

I just want to know if someone has done similar before and maybe give me some tips in how to do it right. (have the least problems possible)

My application has been working fine for over 2 years, but now it is getting slow. Have some BOs with 150,000 records. Maybe around 15 users the the same time.

I assigned 256MB in RAM to Mysql server, and 1024MB RAM to AwareIM

Your comments make this blog great.

best regards,
LineaMovil // Carlos Castillo
AwareIM Version 8.6
Windows Server 2021
MySQL Database 8.4
MEXICO
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: Move AwareIm to a new server

Post by weblike »

Hi,

I have moved my apps to a new server a couple of months ago.
there is a topic on this forum which I have also followed.

Note: You will need support from Vlad to un-register the old server and register the new one(license).

I think this is the topic: http://www.awareim.com/forum/viewtopic. ... ver#p18243

If you need more info, let me know.

Nice day,
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
lineamovil
Posts: 201
Joined: Tue Jul 27, 2010 2:17 am
Location: Mexico

Re: Move AwareIm to a new server

Post by lineamovil »

Thank you George.

Also, how much memory do you have assigned to MySQL sever?

best regards,
LineaMovil // Carlos Castillo
AwareIM Version 8.6
Windows Server 2021
MySQL Database 8.4
MEXICO
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: Move AwareIm to a new server

Post by weblike »

Hi,

My apps are still in development and I do not changed anything on this side, everything is default yet.
But, soon I will do some research/tests to setup these parameters and let you know about the results.

Thx.
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
Rennur
Posts: 1191
Joined: Thu Mar 01, 2012 5:13 am
Location: Sydney, Australia

Re: Move AwareIm to a new server

Post by Rennur »

My AIM server 6.0 on a 16gb RAM system
Image

My ususal MySQL process memory usage (system allocated)
Image

Cheers
lineamovil
Posts: 201
Joined: Tue Jul 27, 2010 2:17 am
Location: Mexico

Re: Move AwareIm to a new server

Post by lineamovil »

What!!!!

Is that possible with AwareIm 5.8? I thought that it was only possible 1024, 512, 256
I have only 256MB for MySQL

I will try the same configuration for 5.8
Best regards...
LineaMovil // Carlos Castillo
AwareIM Version 8.6
Windows Server 2021
MySQL Database 8.4
MEXICO
lineamovil
Posts: 201
Joined: Tue Jul 27, 2010 2:17 am
Location: Mexico

Re: Move AwareIm to a new server

Post by lineamovil »

Rennur,

When you installed the Mysql sever, how did you manage to assign that memory? Selection Dedicated server? or any tweaking in the My.cnf?

I really dont mess with memory, but will love to know you did that. I also have 16GB RAM in the new server.

Thanks!
LineaMovil // Carlos Castillo
AwareIM Version 8.6
Windows Server 2021
MySQL Database 8.4
MEXICO
Rennur
Posts: 1191
Joined: Thu Mar 01, 2012 5:13 am
Location: Sydney, Australia

Re: Move AwareIm to a new server

Post by Rennur »

When you installed the Mysql sever, how did you manage to assign that memory? Selection Dedicated server? or any tweaking in the My.cnf?

I did not assign specific system memory (RAM) to MySql, Windows itself manages that separate of Aware IM.
How MySQL Uses Memory.

Assign as much memory as possible to Aware IM via the server settings. It doesn'tmean Aware requires or will use that much but the more memory it has to work with the better.

Are your system Aware IM components (JDK, Tomcat or MySQL) 64bit?
Rennur
Posts: 1191
Joined: Thu Mar 01, 2012 5:13 am
Location: Sydney, Australia

Re: Move AwareIm to a new server

Post by Rennur »

Notice the memory resources used by my Aware IM server (my app is med->big in size with about 15 heavy and 30 light users):

Image

Javaw.exe 2600mb+ RAM is the Server, the other 2 are Tomcat and Config Tool.
If I had the server set up as 1024MB RAM it wouldn't run or would have issues.
hpl123
Posts: 2593
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Move AwareIm to a new server

Post by hpl123 »

Rennur wrote:My AIM server 6.0 on a 16gb RAM system
Image

My ususal MySQL process memory usage (system allocated)
Image

Cheers
Rennur,
Just curious. If the MAX memory available for Java 64 is 4GB, why do you have a lot more than that? Is it possible i.e. does it work to assign more memory?

Thanks
Henrik (V8 Developer Ed. - Windows)
lineamovil
Posts: 201
Joined: Tue Jul 27, 2010 2:17 am
Location: Mexico

Re: Move AwareIm to a new server

Post by lineamovil »

Hi!

We, I have the standar Tomcat and Java that comes with AwareIm.

I havent changed anything about it. I will look in the blog, but if you have some info, it is greatly appreciated.

Thank you!
Rennur wrote:
When you installed the Mysql sever, how did you manage to assign that memory? Selection Dedicated server? or any tweaking in the My.cnf?

I did not assign specific system memory (RAM) to MySql, Windows itself manages that separate of Aware IM.
How MySQL Uses Memory.

Assign as much memory as possible to Aware IM via the server settings. It doesn'tmean Aware requires or will use that much but the more memory it has to work with the better.

Are your system Aware IM components (JDK, Tomcat or MySQL) 64bit?
LineaMovil // Carlos Castillo
AwareIM Version 8.6
Windows Server 2021
MySQL Database 8.4
MEXICO
ACDC
Posts: 1141
Joined: Sat Jun 30, 2007 5:03 pm
Location: California, USA

Re: Move AwareIm to a new server

Post by ACDC »

Code: Select all

Just curious. If the MAX memory available for Java 64 is 4GB, why do you have a lot more than that? Is it possible i.e. does it work to assign more memory?
I have never heard of 4GB being max memory for a JVM 64, i think you must be confusing this with max memory of win 32 environment ? I have seen some configurations of JVM 64 at 6 GB
hpl123
Posts: 2593
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Move AwareIm to a new server

Post by hpl123 »

ACDC wrote:

Code: Select all

Just curious. If the MAX memory available for Java 64 is 4GB, why do you have a lot more than that? Is it possible i.e. does it work to assign more memory?
I have never heard of 4GB being max memory for a JVM 64, i think you must be confusing this with max memory of win 32 environment ? I have seen some configurations of JVM 64 at 6 GB
This has been discussed at length in the forum and I might be (and hope I am) mistaken. My impression from previous discussions is this:
- If you use Java32 with Aware IM you can MAX allocate 2GB.
- If you use Java64 with Aware IM you can MAX allocate 4GB.

If it´s possible to use more than 4GB (Java64) then that´s very welcome news and new to me. Is there a Java expert or if support could comment, is this correct?

Thanks
Henrik (V8 Developer Ed. - Windows)
Rennur
Posts: 1191
Joined: Thu Mar 01, 2012 5:13 am
Location: Sydney, Australia

Re: Move AwareIm to a new server

Post by Rennur »

According to this FAQ it's only limited by memory and swap space on the local system:

On 64-bit VMs, you have 64 bits of addressability to work with resulting in a maximum Java heap size limited only by the amount of physical memory and swap space your system provides.
See also Why can't I get a larger heap with the 32-bit JVM?


Also keep in mind you need to set the max heap via command line. Without an -Xmx command. without it Java uses 64mb + 30% = 83.2mb as a default max heap on 64 bit machines according the same FAQ.

Code: Select all

java -Xmx1000g myClass 
Source: http://stackoverflow.com/questions/2093 ... 64bit-java
hpl123
Posts: 2593
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Move AwareIm to a new server

Post by hpl123 »

Very nice and good news then :).

Support, a tip is to write something about this (Java 32 VS 64 and memory usage etc. etc.) in the userguide or howto document because this is important and not apparent information.
Henrik (V8 Developer Ed. - Windows)
Post Reply