Due to some reasons I have to run 2 instances of collect in same computer. It seems I cannot run the installer when collect is previously installed. I tried to copy the folder collect and named it collect2 and tried to change the tomcat config but to no avail! Can anybody guide me through this? I would really appreciate it. Thanks.

asked 04 May, 20:55

sushil74432's gravatar image

sushil74432
556
accept rate: 0%


Hi Sushil,
If you still run Collect using Tomcat, then probably you are still running the old version of Collect. In the latest one, instead of Tomcat we use an embedded Jetty server... that make Collect run a bit faster in a standalone configuration. Using the latest version of Collect will make almost impossible to run 2 different instances in the same machine, because the configuration file (where even the http port in use is written) is located in your user home folder, for example c:\Users\YOURUSER\OpenForis\Collect\collect.properties, and you cannot have 2 separate configurations.
What you can do is:
- download this package: Tomcat+Collect
- unzip it in the location you prefer and create 2 copies of the extracted folder
- modify the Tomcat configuration files
- run Tomcat using the startup commands inside it's bin folder
Basically this is what you can normally do when you want to setup Collect in a proper server.
Let us know, thanks.
Open Foris Team

permanent link

answered 05 May, 04:53

OF%20Collect's gravatar image

OF Collect ♦♦
1.1k4
accept rate: 14%

Hi OF Collect,

That worked like magic. Thank you. Just had to rename the mysqlite database name in conf/catalina/localhost/collect.xml Now I have a instance of Collect running on Jetty as you said. And I setup new instance that runs on tomcat. Both are running as intended.

I had another question

On one of the instances, I am using sqlite database and collect is setup on a server where multiple users can login with there own credentials. But I had read that for multiuser environment, we need to use postgres database. Since this setup is working fine now, would there be any trouble in future using sqlite database for multiuser environment? What could be limitations, if any?

Please let me know if I have to create seperate thread for this new question.

Thanks again, Sushil.

permanent link

answered 05 May, 11:59

sushil74432's gravatar image

sushil74432
556
accept rate: 0%

edited 05 May, 12:11

Dear Sushil,
It depends on how many users are connected at the same time... In general it is preferable to use another type of database mainly for performance reasons (the SQLite database gets locked for a short period during every writings and no other process can access it meanwhile...).
Thanks,
Open Foris Team

permanent link

answered 06 May, 18:55

OF%20Collect's gravatar image

OF Collect ♦♦
1.1k4
accept rate: 14%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×169
×3

question asked: 04 May, 20:55

question was seen: 196 times

last updated: 06 May, 18:55

Open Foris Support - 2014