youngmon/atlassian-qna huggingface dataset:
Out of Memory : Metaspace in Confluence 5.8 with Java 8
Asked by ChangJoon Lee:

Hi, everyone,

If I remember correctly, Confluence 5.8 is the first confluence version which dropped support of Java 7.

Now, I'm running Confluence 5.8.4 with Java 8(1.8.0_45) on Mac OS X 10.10 Yosemite

After upgrading to Confluence 5.8 from 5.7, everyday it stops working due to "Out of memory : Metaspace" exception.

I see the explicit command line in following location.

`INST_DIR/bin/setenv.sh`

contains,

CATALINA_OPTS="-Xms1024m -Xmx1024m **-XX:MaxMetaspaceSize=256m** -XX:+UseG1GC ${CATALINA_OPTS}"

<br />

As far as I understand Metaspace for Java 8, the `MaxMetaspaceSize` is **unlimited** by default.

Why would we want to have limitation here instead of leave as it is?

From now on, I will remove MaxMetaspaceSize option, and will see what happens next.


Answers:
author: ChangJoon Lee
body: #### JAVA VM Status from Confluence Administrator Page {#toc-hId-1287580297}

Heap memory = 1024MB

Used = 732MB

Free = 291MB (29%)

#### Process Monitor {#toc-hId--1264576664}

VIRT = 5599MB

RES = 1794MB

MEM% = 11% (System Memory = 8GB)

#### Current status without MaxMetaspaceSize option {#toc-hId-478233671}

So far, no sign of "Out of Memory".

#### Conclusion {#toc-hId--2073923290}

Get rid of that option!

comments: author: Martin Buchleitner
body: I also removed this parameter after having trouble with the maxmetaspace ... Working just fine now :)


author: ChangJoon Lee
body: [https://confluence.atlassian.com/display/CONFKB/Confluence+crashes+due+to+%27java.lang.OutOfMemoryError+Metaspace%27+error?utm_source=STP\&utm_medium=logScan](https://confluence.atlassian.com/display/CONFKB/Confluence+crashes+due+to+%27java.lang.OutOfMemoryError+Metaspace%27+error?utm_source=STP&utm_medium=logScan)


author: ChangJoon Lee
body: <https://jira.atlassian.com/browse/CONF-37925>


author: Bernard Vandaele
body: same here unbelievable support was sending me different values to "try and see"


author: James Rogers
body: I had all my apps running on one sever with 8GB RAM (crowd, jira, stash, confluence, bamboo). I kept getting the OutOfMemory error and kept increasing MX. Server was at 7GB with 500MB Swap used. I even moved confluence to it's own VM with it's own 8GB RAM...max 4GB used with zero Swap (wasting 4GB RAM) Still kept getting the error. Then I finally tried to figure out what MetaSpace was. (at least ask a question here). Thank you all for the answer here. I have removed the value from my setenv.sh and am anticipating positive results!


Tags: confluence-administration
Trying to edit pages & child pages! HELP!
Asked by Syed Bokhari:

image2015-6-8 16:51:36.png

Can anyone please help?  
[](https://community.atlassian.com/t5/Confluence-questions/Trying-to-edit-pages-child-pages-HELP/qaq-p/209367?attachment-id=6201){#link_1192187472051b}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/35335/1/image2015-6-8%2016%3A51%3A36.png){#display_1192187472051b_0}


Answers:
author: Philippe Aubin
body: <https://confluence.atlassian.com/display/CONFKB/Disable+Snip-Snap+Compatibility+Plugin>


Tags: confluence-administration
Issue connecting to a database using PocketQuery
Asked by Davor Fisher:

Once PocketQuery is installed and all the database information is inputed to add data, it does not want to connect to it. I keep receiving an error.

'I cannot connect to this database. For inspection, add a logging entry with level debug and class "de.scandio.confluence.plugins.pocketquery.util.LogUtil" at Confluence Admin =\> "Logging and Profiling". PocketQuery will then log information to atlassian-confluence.log.'


Answers:
author: Felix Grund (Scandio)
body: Please let us know if there is further progress on this!


author: Davor Fisher
body: Yes, we were able to connect to our database instance but now are waiting for database access information from a different team that we are testing the plugin for. Thanks


author: Philipp G?llner (Scandio)
body: Any news on this? Did it work?


author: Davor Fisher
body: What do you mean? We have already added"de.scandio.confluence.plugins.pocketquery.util.LogUtil" script under logging and profiling as the error states but we still receive the issue once we try to connect to data. It could possibly be that we are not putting in the correct data information so we are checking with our data service.


author: Timothy
body: And what is in the logs?


Tags: confluence-administration
DITA Support for Confluence
Asked by Karie Kelly:

I've seen a couple of questions asked on this topic, but none yet answered. We are required to move towards a DITA solution for all of our technical and product documentation; currently, all of this resides in Confluence for the collaboration. Is there any plugin that would allow us to export Confluence content as XML but, allow us to import to it to make any file mods to provide DITA support and import into the required tool that we now have to use?


Answers:
author: Giuliano C.
body: Hey Karie,

From this Answers post: [Is it possible import DITA into Confluence or export Confluence content to DITA?](https://answers.atlassian.com/questions/198678) it looks like that Sourceforge is working with some projects to do the import to a WIKI, in our example, Confluence: <http://sourceforge.net/projects/dita2wiki/>

Hope it helps you!

Regards,

Giuliano
{html} not working on page
Asked by minesh patel:

Hello,

I currently running confluence version 4.3.7. I am trying to use the
{html}

marco. I have installed the Conluence HTML Macro and enable at the modules. However, it does work. It gives me an error message -- "The macro 'html' is unknown. It may have been removed from the system."

Does any one know why this is happening?? Is there a solution for this problem??

Please, email me at [minesh@ucf.edu.](mailto:minesh@ucf.edu.) Thanks.


Answers:
author: Fritz Madden
body: I went to my plugin list and searched for HTML, which yielded 0 results. The macro isn't installed or enabled. I'm not sure what to do, and the documentation says it should be installed but disabled. Any hints?

comments: author: Nic Brough -Adaptavist-
body: It's not an add-on in its own right, it's part of one of the core formatting add-ons. You'll need to open up the system add-ons and look for the modules that are disabled by default


author: Fritz Madden
body: Thanks Nic! However, I searched for HTML and found nothing but Atlassian XHTML which looks to be something different, and also looked through almost all of the Add-ons categorized as System add-ons. I can't seem to find it. Any idea what it's called or what I should search for?


author: Nic Brough -Adaptavist-
body: Can't remember, but I know a ctrl-f search in the browser will find the addon with either Core, Html or Format


author: Fritz Madden
body: Well everything that comes up when searching for Core is enabled. Only one Altassian HTML comes up when searching for html, and Adaptavist Content Formatting Macros is the only one that comes up while searching for Format that has some disabled items but none of those are "html".


author: Fritz Madden
body: Sorry that was Atlassian XHTML and it says "This add-on has no modules"


author: Nic Brough -Adaptavist-
body: Atlassian HTML macros sounds like the one.


author: Nic Brough -Adaptavist-
body: The html macros are generally disabled as a security risk.

Start by going to the list of plugins you have installed and find the one that provides the html macro. I suspect you'll find it is disabled - try enabling it. If that does not work, it should then give you an error telling you why it can't enable it.


Tags: confluence-administration
Can not set up External Database for Confluence Standalone
Asked by Crystal Gonzalez:

Hi ,

I'm setting up a new server for Confluence but I'm getting this error:

Setup Datasource Database Failed

The following error(s) occurred:

* Could not lookup datasource successfully: com.atlassian.config.bootstrap.BootstrapException: Could not locate datasource: jdbc/confluence

I followed everything based on the instructions here:

<https://confluence.atlassian.com/display/CONF33/Installing+Confluence+Standalone+on+UNIX+or+Linux#InstallingConfluenceStandaloneonUNIXorLinux-7.SelectanExternalDatabase>

We are using Oracle 11g Release 2 and I have updated the necessary files in the server and also copied the ojdbc6-11.2.0.3.jar in the proper directory. Im also running on

java version "1.7.0_79"

Hope to hear from you asap as I can't see any helpful page to answer this question


Answers:
author: Nic Brough -Adaptavist-
body: I'd start with the incompatibilities you seem to have here.

You are using the instructions for Confluence 3.3 - that's no longer supported, but if it is the version you are installing for some reason, then you need to look at your libraries, because it does not support Java 1.7, and from memory, although it can look like it's ok, it really isn't. You should downgrade your java to 1.6 before installing. (And I'd check the oracle driver too, I'm really not sure about that)

If you are not installing Confluence 3.3, then I'd suggest looking at the installation instructions for the right version.

comments: author: Crystal Gonzalez
body: Hi Nic,

Thanks for your input I actually downgraded my JDK to 1.6 but unfortunately still getting the same error. I also double check the ojdbc version which is compatible to this version.But still no luck


author: Nic Brough -Adaptavist-
body: OK, so the supporting environment is now valild, so the question becomes what have you done differently from the documentation you referred to originally? Although one other thing is that I would define your path and JAVA_HOME in the setenv.sh file to make completely sure that it is referring to Java 1.6


Tags: confluence-administration
How can I see all of a user's recent activity?
Asked by Nathaniel Lee:

I am a site admin...we are using JIRA and Confluence. I need to see all of a certain user's activity in each of these apps within a certain date range. How can I do this?


Answers:
author: Paulo Junior
body: What about Activity Stream?

<https://confluence.atlassian.com/display/DOC/Activity+Stream+Gadget>

comments: author: Nathaniel Lee
body: That's precisely what I need! Thank you.


Tags: cloud

confluence-cloud
can confluence sync with ad
Asked by Victor Prasad:

Hello,

Am I able to sync a single AD group with Confluence?

What about multiple groups, but not everything in AD?

Please point me to the docs?

Thanks,

V


Answers:
author: Rodrigo Girardi Adami
body: Hi Victor,

If you'd like to sync just some groups and users with AD, this is possible. You just need to use filters in the user directory configuration.

<https://confluence.atlassian.com/display/DEV/How+to+write+LDAP+search+filters>

I hope this helps!

Cheers,

Rodrigo


author: Davin Studer
body: Hers is Atlassian's documentation for it.

<https://confluence.atlassian.com/display/DOC/Connecting+to+an+LDAP+Directory>


Tags: confluence-administration
confluence macro $body
Asked by Paul DeSousa:

Hi all,

I have what should be an easy one, but I cannot seem to get it. I am trying to write a stack overflow type of highlight and the body is showing as "$body" instead of the actual contents of the body?!? Here is what I wrote:

## Macro title: highlight  
## Macro has a body: Y  
## Output: HTML  
## Body processing: Rendered  
## This makes the body text look like inline code markup from stackoverflow  
## @noparam

\<span style="padding: 1px 5px 1px 5px; font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif; background-color: #eeeeee;"\> \<ac:rich-text-body\>$body\</ac:rich-text-body\> \</span\>

Thanks in advance,

Robert


Answers:
author: Paul DeSousa
body: NM the button above was set to no body. Rough day sorry...
Confluence space connect to private Hipchat room
Asked by Todd Simmons:

How do you connect a private Hipchat room to a confluence space?


Answers:
author: Giuliano C.
body: Hi Todd,

From this report: <https://jira.atlassian.com/browse/CONF-35840>

It looks like that this is a feature/bug fix that was implemented for Confluence 5.8 and Hipchat 6.11.1 version. If you are already in these versions, you can do it by:

1. Connect Confluence to HipChat
2. Go to space configuration, HipChat Integration
3. Search for private room

Hope it helps you!

Regards,

Giuliano Tenedini

Confluence/Crowd Support


Tags: cloud

confluence-cloud
how to duplicate tree
Asked by sguisse:


Answers:
author: Stephen Deutsch
body: Maybe you should try out this free Atlassian Labs plugin:

<https://marketplace.atlassian.com/plugins/com.atlassian.confluence.plugins.confluence-copy-page-hierarchy-plugin>

It's not marked that it works until 5.7/5.8, but I think it should still work.

comments: author: sguisse
body: Thank you very much you save me a lot of time ;-)


author: Nic Brough -Adaptavist-
body: What tree?


Tags: confluence-administration
Info / Customization of page history
Asked by Rosario De Domenico:

I would like to know / customize the length of the page history for the entire space and / or for each single page; for example I would like to only keep changes done in any page of my space in the last 6 months and extend it to 3 years for some of the pages.

In addition I would like to limit the users that can delete a older version to a given user-group.

Is all this supported? How can this be done?

In general for how long are older versions (and deleted pages) kept? is this "for ever" (meaning until there is enough space or manually removed / purged)?

Are removed older version purged directly, or do they land in the trash?

**Edit**: I now asked the question also to support... I am so confused and starting to realize only now that "Bug\&Features", "Answers" and "Support" are distinct places where to ask for information...


Answers:
author: Rosario De Domenico
body: I got an answer from Support, so I am reporting it here:

Hi Rosario,

Thank you for contacting Atlassian Support.

Let me try my best to answer your inquiries :

1. If the page is not restricted then all users can see the page history, if the page itself is restricted to a particular group or users then the page history restriction will follow those as well. This feature request have already been created which can be found in the link below : <https://jira.atlassian.com/browse/CONF-13247>
2. The delete restriction again will be dependent on the page restriction which is the same behavior as described above. There is no extra restriction set for page histories.
3. Deletion is permanent and will not end up the trash, there is no configuration that can be done for this.
4. You would not be able to track the version efficiently if the history is being deleted.
5. There is no time limit or any limit for that matter.

Please let us know if you have additional question on this.

Regards, Der Lun


Tags: confluence-administration
Menu Manager Plugin license
Asked by Rosario De Domenico:

Hi,

The company I work for recently bought a Confluence Server license (100 users); I was checking the [Menu Manager Plugin](https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.menumanager) and I can read that it is free for Server installation, but after installation it requires to upload a new license.

image2015-6-5 13:18:18.png

What shall I do?

Rosario  
[](https://community.atlassian.com/t5/Confluence-questions/Menu-Manager-Plugin-license/qaq-p/365540?attachment-id=4583){#link_11885dba54b9e0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/61780/1/image2015-6-5%2013%3A18%3A18.png){#display_11885dba54b9e0_0}


Answers:
author: Nelson Carranza
body: Hi Rosario,

You need to get the free license

<http://marketplace.servicerocket.com/product/menu-manager-plugin>

Regards

Nelson


Tags: confluence-administration
Find Users in Confluence With Access to a Space?
Asked by David Malka:

Hi,

One of our managers has asked me to list the users not in our company who have access to a particular space in Confluence. If I look in the group that has access to the space, there are 111 members. I try this in the JIRA MySQL DB (we use crowd)..

mysql\> SELECT lower_user_name, email_address,pname FROM cwd_user, project WHERE email_address NOT LIKE '\*%.ourcompany.com' AND pname = 'somegroup';

That lists 1190 users. I'm guessing there's some way to narrow this down, but I can't find which table... help!


Answers:
author: Daniel Ponzio
body: Hey David!

Try to run the query below, modifying the space names, email, and group names. This runs on the Confluence DB, if you'd like to run this on JIRA it would take lots of tweaking as the tables are named differently and permissions are defined differently. I also tried this on postgres in my own instance. If we can't get it to work I'll try to test it on a MySQL DB:

```
SELECT sp.permid, sp.permtype, s.spacekey, s.spacename, sp.permgroupname, um.lower_username, cu.email_addressFROM spacepermissions AS spJOIN spaces AS ON sp.spaceid = s.spaceidLEFT JOIN user_mapping AS um ON sp.permusername = um.user_keyLEFT JOIN cwd_user AS cu ON um.lower_username = cu.lower_user_nameWHERE s.spacename = 'SPACENAME'AND (cu.email_address NOT LIKE '%@DOMAIN.com' OR sp.permgroupname = 'GROUPNAME');
```

Just for reference, this is basically a modified version of the query found [here](https://confluence.atlassian.com/display/CONFKB/How+to+Check+Permissions+for+a+Space+via+SQL+Queries). Hopefully this helps!

Daniel


Tags: confluence-administration
How can we remove the "default" setting for a group in conflunece?
Asked by MihaiF:

Now we have two default groups for Confluence users.

confluence-recognos and recognos-users

And we want:

* confluence-recognos to assign conflunece licence (it is default). We wopuld like to rename it to confluence-users
* recognos-users is default also; we want to remove it from being default;

Thank you!


Answers:
author: Nic Brough -Adaptavist-
body: 1. Create a new group called confluence users
2. Put all your users in it
3. Work out where confluence-recognos has been used and replace it with confluence-users
4. Go to general permissions and remove recognos-users from "can use" permissions - that's what does the defaults

Confluence doesn't do group-renaming (yet), you have to add and delete.

comments: author: Mohd Fuad Bin Md Nordin
body: what is "can use" permission? I cant find it in Global permission


author: Nic Brough -Adaptavist-
body: It's the first column in all three tables of types of access (Group, user and anonymous).


author: Raul Comerzan
body: Tanks a lot, it's working!


Tags: cloud

confluence-cloud
Is there a way to find out which template is used by which page in confluence?
Asked by Rik Nackaerts:

Is there a way to find out which template is used by which page in confluence?


Answers:
author: Stephen Deutsch
body: Not by default. Since you could create a template page and just delete all the information, Confluence doesn't keep track of which template is used for which page.

However, there are some ways you can guess.

For new pages, you could have the template include a label, and then this would identify pages created from that template

For older pages, you could try to find sections of text which are included in the original template document and search for those, especially headings and things that aren't likely to change. Just search for "some text" AND "other text" AND "more text" (note: and must be capitalized) and then you could probably find it.

comments: author: Rik Nackaerts
body: But it's a real pitty that Confluence doesn't keep track of which template is used. What's the purpose of using a template when you delete the layout?I will keep it in mind to use labels everywhere.Thanks for the answer!


Tags: confluence-administration
how to rename a group (default group also)?
Asked by MihaiF:

Hi,

How can we rename user group (also default groups) in JIRA and confluence?

Thank you!


Answers:
author: Lukas Knoch -Rumpelcoders-
body: Hi!

we had the same issue with our own confluence installation. We had to rename groups. The bulk move was no option as all permissions would be lost in that case. So we backed up up the database and used the following queries:

```
Update cwd_group set group_name='new_group', lower_group_name='new_group' where lower_group_name='old_group';Update content_perm set groupname='new_group' where groupname='old_group';Update spacepermissions set permgroupname='new_group' where permgroupname='old_group';
```

These queries seem to preserve members and applied space permissions as well as page restrictions (Confluence 5.7.4). Please assure that the new group names match the requirements (lowercase only...). For for updating the group names in page restrictions you have to restart your server instance after the change.

Once again, make sure you back up your confluence instance before doing this.

You should also take a look at the related answers here: <https://answers.atlassian.com/questions/98523>

best regards

comments: author: Lukas Knoch -Rumpelcoders-
body: sry, didn't see that you are on cloud. That might limit your possibilities here. apologies.


author: Luiz Maia
body: Hello there,

Unfortunately it's currently not possible. We have improvement requests for both [JIRA](https://jira.atlassian.com/browse/JRA-1391) and [Confluence](https://jira.atlassian.com/browse/CONF-9159), but for JIRA it's been confirmed from our development team that they are not planning to add this functionality in the near future. I suggest you vote and comment for the Confluence request.

The only workaround would be creating a new group and bulk move users from the old group to this new group.

Let us know should you have any questions, thank you.

Kind regards,

Luiz Maia  
Atlassian Support

comments: author: Huy Nguyen
body: How do you do a bulk move of users?


author: Nic Brough -Adaptavist-
body: It's not a move, it's "add the users to the new group, then delete them from the old one"


author: Randy
body: it's also very manual - you'll need to find all the places the group was used and replace it with the new one.


Tags: cloud

confluence-cloud
Unable tp upload Excel with Macros
Asked by Elif ?zcumali:

Hey guys,

I tried to upload an xls file with macros. But the Excel Macro is not showing any **.xlsm** files, so I cannot select the files.

Is there any workaround ? Or something like?

Thanks in advance


Answers:
author: Elif ?zcumali
body: how can I see which version the add on has?

I couldnt find it ...

Thanks

comments: author: Bob Swift (personal)
body: Ask your administrator to find the add-on in the Add-on section.


author: Bob Swift (personal)
body: The **Excel** macro will display .xlsm files. Just make sure you have a recent version of the add-on like 5.2.0 for instance. Copy and paste the attachment or other name into the **Location** parameter.

comments: author: Marc Moroz
body: xlsm isn't support on the server side and this is several years later.


author: drsette
body: Is anyone else trying to use xlsm on the server version of Confluence? We aren't able to use the view in Excel Macro and it doesn't show up when you drag it in as a thumbnail. Is there another option we don't know about?


author: Elif ?zcumali
body: We are not able to view/ display an Microsroft Excel file withe the ending .xlsm (includes marcos).

We can?t run the Excel macros by viewing the file in confluence


author: Bob Swift (personal)
body: I don't understand your question. What do you mean by "upload an xls file with macros"?

comments: author: Marc Moroz
body: The Confluence Excel viewer macro doesn't recognize .xlsm so people change the extension to .xls which retains the macros and makes it recognizable to the Excel viewer.


author: drsette
body: When I change it to .xls it doesn't view properly. I end up seeing macro code in the boxes instead of the output I am expecting to see. We ended up creating a PDF to view on the page.


Tags: macro

ms-excel